Permalink
Browse files

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>
  • Loading branch information...
AnnaMag authored and italoacasas committed Dec 14, 2016
1 parent 92ed1ab commit 0d3ac89ff7e8e664bd0d09dc8de56f302cbc9ee0
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/known_issues/test-vm-deleting-property.js
@@ -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);

0 comments on commit 0d3ac89

Please sign in to comment.