mirror of https://github.com/nodejs/node.git
12 lines
191 B
JavaScript
12 lines
191 B
JavaScript
|
require('../common');
|
||
|
|
||
|
error('before');
|
||
|
|
||
|
var Script = process.binding('evals').Script;
|
||
|
|
||
|
// undefined reference
|
||
|
script = new Script('foo.bar = 5;');
|
||
|
script.runInNewContext();
|
||
|
|
||
|
error('after');
|