mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Re-apply commit e307468.
The V8 assert got triggered by a missing HandleScope::Close().
This commit is contained in:
1 parent
0581afe531
commit
fee02db705
2 files changed
+13
-3
No files matched your search
@@ -47,8 +47,18 @@ if (process.argv[2] == 'you-are-the-child') {
|
||||
// failed assertion results in process exiting with status code 1
|
||||
assert.equal(false, 'NODE_PROCESS_ENV_DELETED' in process.env);
|
||||
assert.equal(42, process.env.NODE_PROCESS_ENV);
|
||||
assert.equal('asdf', process.env.hasOwnProperty);
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
var has = hasOwnProperty.call(process.env, 'hasOwnProperty');
|
||||
assert.equal(true, has);
|
||||
process.exit(0);
|
||||
} else {
|
||||
assert.equal(Object.prototype.hasOwnProperty, process.env.hasOwnProperty);
|
||||
var has = process.env.hasOwnProperty('hasOwnProperty');
|
||||
assert.equal(false, has);
|
||||
|
||||
process.env.hasOwnProperty = 'asdf';
|
||||
|
||||
process.env.NODE_PROCESS_ENV = 42;
|
||||
assert.equal(42, process.env.NODE_PROCESS_ENV);
|
||||
|
||||
|
||||
Reference in new issue
Block a user