blob: 5674f582426f1ff1e9e983ebc4525a0364954df3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
'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);
});
|