before evalmachine.:1 foo.bar = 5; ^ ReferenceError: foo is not defined at evalmachine.:1:1 at ContextifyScript.Script.runInNewContext (vm.js:*) at Object.exports.runInNewContext (vm.js:*) at Object. (*test*message*undefined_reference_in_new_context.js:*) at Module._compile (module.js:*) at *..js (module.js:*) at Module.load (module.js:*) at Function.Module._load (module.js:*:*) at Function.Module.runMain (module.js:*:*) at startup (node.js:*:*)