• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2// Refs: https://github.com/nodejs/node/issues/6287
3
4require('../common');
5const assert = require('assert');
6const vm = require('vm');
7
8const context = vm.createContext();
9const res = vm.runInContext(`
10  this.x = 'prop';
11  delete this.x;
12  Object.getOwnPropertyDescriptor(this, 'x');
13`, context);
14
15assert.strictEqual(res, undefined);
16