Skip to content

Commit 0d3ac89

Browse files
AnnaMagitaloacasas
authored andcommitted
test: add known_issues test for #6287
Deleting property in the vm context has no effect as reported in #6287 The test is moved to the known_issues and will be fixed with the 5.5 V8 API changes. PR-URL: #10272 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 92ed1ab commit 0d3ac89

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
// Refs: https://github.com/nodejs/node/issues/6287
3+
4+
require('../common');
5+
const assert = require('assert');
6+
const vm = require('vm');
7+
8+
const context = vm.createContext();
9+
const res = vm.runInContext(`
10+
this.x = 'prop';
11+
delete this.x;
12+
Object.getOwnPropertyDescriptor(this, 'x');
13+
`, context);
14+
15+
assert.strictEqual(res.value, undefined);

0 commit comments

Comments
 (0)