Skip to content

Commit 3c8dd8e

Browse files
legendecasaduh95
authored andcommitted
repl: use vm DONT_CONTEXTIFY context
PR-URL: #62371 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1b9d8d3 commit 3c8dd8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/repl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,10 +1132,10 @@ class REPLServer extends Interface {
11321132
session.once('Runtime.executionContextCreated', ({ params }) => {
11331133
this[kContextId] = params.context.id;
11341134
});
1135-
context = vm.createContext();
1135+
context = vm.createContext(vm.constants.DONT_CONTEXTIFY);
11361136
session.post('Runtime.disable');
11371137
}, () => {
1138-
context = vm.createContext();
1138+
context = vm.createContext(vm.constants.DONT_CONTEXTIFY);
11391139
});
11401140
ArrayPrototypeForEach(ObjectGetOwnPropertyNames(globalThis), (name) => {
11411141
// Only set properties that do not already exist as a global builtin.

0 commit comments

Comments
 (0)