test: add known_issues test for #6287
Deleting property in the vm context has no effect as reported in https://github.com/nodejs/node/issues/6287 The test is moved to the known_issues and will be fixed with the 5.5 V8 API changes. PR-URL: https://github.com/nodejs/node/pull/10272 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
92ed1ab450
commit
0d3ac89ff7
15
test/known_issues/test-vm-deleting-property.js
Normal file
15
test/known_issues/test-vm-deleting-property.js
Normal file
@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
// Refs: https://github.com/nodejs/node/issues/6287
|
||||
|
||||
require('../common');
|
||||
const assert = require('assert');
|
||||
const vm = require('vm');
|
||||
|
||||
const context = vm.createContext();
|
||||
const res = vm.runInContext(`
|
||||
this.x = 'prop';
|
||||
delete this.x;
|
||||
Object.getOwnPropertyDescriptor(this, 'x');
|
||||
`, context);
|
||||
|
||||
assert.strictEqual(res.value, undefined);
|
Loading…
x
Reference in New Issue
Block a user