before evalmachine.:1 foo.bar = 5; ^ ReferenceError: foo is not defined at evalmachine.:1:1 at ContextifyScript.Script.runInContext (vm.js:*) at ContextifyScript.Script.runInNewContext (vm.js:*) at Object.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 tryModuleLoad (module.js:*:*) at Function.Module._load (module.js:*:*)