Skip to content

Commit 9a9e530

Browse files
AnnaMagevanlucas
authored andcommitted
test: add known_issues test for #5350
PR-URL: #10319 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent 37563fa commit 9a9e530

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'use strict';
2+
// Ref: https://github.com/nodejs/node/issues/5350
3+
4+
require('../common');
5+
const vm = require('vm');
6+
const assert = require('assert');
7+
8+
const base = {
9+
propBase: 1
10+
};
11+
12+
const sandbox = Object.create(base, {
13+
propSandbox: {value: 3}
14+
});
15+
16+
const context = vm.createContext(sandbox);
17+
18+
const result = vm.runInContext('this.hasOwnProperty("propBase");', context);
19+
20+
assert.strictEqual(result, false);

0 commit comments

Comments
 (0)