Skip to content

Commit 527ef53

Browse files
committed
test: add known_issues test for nodejs#6287
Deleting property in the vm context has no effect nodejs#6287 The test is moved to the known_issues and will be fixed with the 5.5 V8 API changes.
1 parent cdecffb commit 527ef53

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
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+
var 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.equal(res.value, undefined);

test/known_issues/test-vm-reference-context-inside-object.js

-19
This file was deleted.

0 commit comments

Comments
 (0)