mirror of https://github.com/lukechilds/node.git
Ryan Dahl
15 years ago
5 changed files with 43 additions and 2 deletions
@ -0,0 +1,11 @@ |
|||||
|
require('../common'); |
||||
|
|
||||
|
error('before'); |
||||
|
|
||||
|
var Script = process.binding('evals').Script; |
||||
|
|
||||
|
// undefined reference
|
||||
|
script = new Script('foo.bar = 5;'); |
||||
|
script.runInNewContext(); |
||||
|
|
||||
|
error('after'); |
@ -0,0 +1,14 @@ |
|||||
|
before |
||||
|
|
||||
|
|
||||
|
/Users/ryan/projects/node/test/message/undefined_reference_in_new_context.js:9 |
||||
|
script.runInNewContext(); |
||||
|
^ |
||||
|
ReferenceError: foo is not defined |
||||
|
at evalmachine.<anonymous>:1:1 |
||||
|
at Object.<anonymous> (/Users/ryan/projects/node/test/message/undefined_reference_in_new_context.js:9:8) |
||||
|
at Module._compile (module:384:23) |
||||
|
at Module._loadScriptSync (module:393:8) |
||||
|
at Module.loadSync (module:296:10) |
||||
|
at Object.runMain (module:447:22) |
||||
|
at node.js:208:10 |
Loading…
Reference in new issue