Skip to content

Commit 40f7a0d

Browse files
author
Gareth Jones
committed
process is a property, and not enumerable, since node v12
1 parent 6d9301d commit 40f7a0d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/sandboxed_module.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ function getStartingGlobals() {
303303
ReferenceError: ReferenceError,
304304
SyntaxError: SyntaxError,
305305
TypeError: TypeError,
306-
URIError: URIError
306+
URIError: URIError,
307+
process: process
307308
};
308309
}
309310

test/integration/test-global.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ for (var key in global) {
1616

1717
assert.strictEqual(globals[key], global[key], key);
1818
}
19+
20+
// process is now a property and not enumerable, since node v12
21+
assert.strictEqual(globals.process, global.process, 'process');

0 commit comments

Comments
 (0)