0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/parallel/test-vm-cross-context.js

11 lines
233 B
JavaScript
Raw Normal View History

'use strict';
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);
});