diff --git a/test/parallel/test-vm-context.js b/test/parallel/test-vm-context.js index 48bceb1459..ce648b7fb7 100644 --- a/test/parallel/test-vm-context.js +++ b/test/parallel/test-vm-context.js @@ -72,3 +72,7 @@ assert.throws(function() { }, function(err) { return /expected-filename.js:33:130/.test(err.stack); }, 'Expected appearance of proper offset in Error stack'); + +// https://github.com/nodejs/node/issues/6158 +ctx = new Proxy({}, {}); +assert.strictEqual(typeof vm.runInNewContext('String', ctx), 'function');