node/test/message/undefined_reference_in_new_...

13 lines
238 B
JavaScript

common = require('../common');
assert = common.assert;
common.error('before');
var Script = process.binding('evals').Script;
// undefined reference
script = new Script('foo.bar = 5;');
script.runInNewContext();
common.error('after');