mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
408 B
21 lines
408 B
8 years ago
|
'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);
|