mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
test: add known_issues test for #5350
PR-URL: https://github.com/nodejs/node/pull/10319 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
This commit is contained in:
1 parent
2a5f789141
commit
b73402d97a
1 file changed
+20
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
// Ref: https://github.com/nodejs/node/issues/5350
|
||||
|
||||
require('../common');
|
||||
const vm = require('vm');
|
||||
const assert = require('assert');
|
||||
|
||||
const base = {
|
||||
propBase: 1
|
||||
};
|
||||
|
||||
const sandbox = Object.create(base, {
|
||||
propSandbox: {value: 3}
|
||||
});
|
||||
|
||||
const context = vm.createContext(sandbox);
|
||||
|
||||
const result = vm.runInContext('this.hasOwnProperty("propBase");', context);
|
||||
|
||||
assert.strictEqual(result, false);
|
||||
Reference in new issue
Block a user