mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: add known_issues test for #10223
PR-URL: https://github.com/nodejs/node/pull/11024 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
72a97b66dc
commit
eff3a48e63
1 file changed
+17
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
// Refs: https://github.com/nodejs/node/issues/10223
|
||||
|
||||
require('../common');
|
||||
const vm = require('vm');
|
||||
const assert = require('assert');
|
||||
|
||||
const context = vm.createContext({});
|
||||
|
||||
const code = `
|
||||
Object.defineProperty(this, 'foo', {value: 5});
|
||||
Object.getOwnPropertyDescriptor(this, 'foo');
|
||||
`;
|
||||
|
||||
const desc = vm.runInContext(code, context);
|
||||
|
||||
assert.strictEqual(desc.writable, false);
|
||||
Reference in new issue
Block a user