Lines Matching refs:vm
27 const vm = require('vm');
33 const result = vm.runInNewContext('\'passed\';');
38 vm.runInNewContext('throw new Error(\'test\');');
42 vm.runInNewContext('hello = 2');
53 const baz = vm.runInNewContext(global.code, global.obj);
61 vm.runInNewContext('f()', { f: changeFoo });
66 vm.runInNewContext('f.a = 2', { f });
70 const fn = vm.runInNewContext('(function() { obj.p = {}; })', { obj: {} });
75 const filename = 'test_file.vm';
81 vm.runInNewContext(code, {}, arg);