Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eff3a48

Browse filesBrowse files
AnnaMagevanlucas
authored andcommitted
test: add known_issues test for #10223
PR-URL: #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>
1 parent 72a97b6 commit eff3a48
Copy full SHA for eff3a48

File tree

Expand file treeCollapse file tree

1 file changed

+17
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-0
lines changed
Open diff view settings
Collapse file
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use strict';
2+
// Refs: https://github.com/nodejs/node/issues/10223
3+
4+
require('../common');
5+
const vm = require('vm');
6+
const assert = require('assert');
7+
8+
const context = vm.createContext({});
9+
10+
const code = `
11+
Object.defineProperty(this, 'foo', {value: 5});
12+
Object.getOwnPropertyDescriptor(this, 'foo');
13+
`;
14+
15+
const desc = vm.runInContext(code, context);
16+
17+
assert.strictEqual(desc.writable, false);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.