mirror of
https://github.com/nodejs/node.git
synced 2024-11-28 22:46:31 +01:00
10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
|
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);
|
||
|
});
|