We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ff6c77 commit 3598056Copy full SHA for 3598056
1 file changed
test/parallel/test-vm-set-property-proxy.js
@@ -0,0 +1,16 @@
1
+'use strict';
2
+const common = require('../common');
3
+const assert = require('assert');
4
+const vm = require('vm');
5
+
6
+// Regression test for https://github.com/nodejs/node/issues/34606
7
8
+const handler = {
9
+ getOwnPropertyDescriptor: common.mustCallAtLeast(() => {
10
+ return {};
11
+ })
12
+};
13
14
+const proxy = new Proxy({}, handler);
15
+assert.throws(() => vm.runInNewContext('p = 6', proxy),
16
+ /getOwnPropertyDescriptor/);
0 commit comments