mirror of https://github.com/nodejs/node.git
16 lines
354 B
JavaScript
16 lines
354 B
JavaScript
'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);
|