Lines Matching +full:vm +full:- +full:other
1 // Copyright Joyent, Inc. and other Node contributors.
18 // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 // USE OR OTHER DEALINGS IN THE SOFTWARE.
23 // Flags: --expose-gc
27 const vm = require('vm'); constant
30 assert.fail('Run this test with --expose-gc');
33 const result = vm.runInNewContext('\'passed\';');
38 vm.runInNewContext('throw new Error(\'test\');');
42 vm.runInNewContext('hello = 2');
52 /* eslint-disable no-unused-vars */
53 const baz = vm.runInNewContext(global.code, global.obj);
54 /* eslint-enable no-unused-vars */
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);