Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3c8dd8e

Browse filesBrowse 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
Copy full SHA for 3c8dd8e

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/repl.js‎

Copy file name to clipboardExpand all lines: lib/repl.js
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.