Lines Matching refs:script
30 const script = new Script('\'passed\';'); constant
31 const result1 = script.runInNewContext();
32 const result2 = script.runInNewContext();
38 const script = new Script('throw new Error(\'test\');'); constant
40 script.runInNewContext();
45 const script = new Script('foo.bar = 5;'); constant
47 script.runInNewContext();
53 const script = new Script('hello = 2'); constant
54 script.runInNewContext();
67 const script = new Script(global.code); constant
69 const baz = script.runInNewContext(global.obj);
82 const script = new Script('f()'); constant
84 script.runInNewContext({ f: changeFoo });
92 const script = new Script('f.a = 2'); constant
94 script.runInNewContext({ f });
98 script.runInNewContext();
103 const script = new Script(''); constant
105 script.runInNewContext.call('\'hello\';');