mirror of https://github.com/lukechilds/node.git
Browse Source
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>v6
AnnaMag
8 years ago
committed by
Italo A. Casas
1 changed files with 15 additions and 0 deletions
@ -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…
Reference in new issue