Skip to content

Commit c604016

Browse files
AnnaMagMylesBorins
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 <fishrock123@rocketmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent a24a35f commit c604016

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
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)