summaryrefslogtreecommitdiff
path: root/test/parallel/test-vm-deleting-property.js
blob: 994aa0aff94f2dee8a4c85051e6c126c6d38b88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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, undefined);