0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 22:46:31 +01:00
nodejs/test/parallel/test-vm-cross-context.js

10 lines
232 B
JavaScript
Raw Normal View History

var common = require('../common');
var assert = require('assert');
var vm = require('vm');
var ctx = vm.createContext(global);
assert.doesNotThrow(function() {
vm.runInContext("!function() { var x = console.log; }()", ctx);
});