1before 2evalmachine.<anonymous>:1 3foo.bar = 5; 4^ 5 6ReferenceError: foo is not defined 7 at evalmachine.<anonymous>:1:1 8 at Script.runInContext (vm.js:*) 9 at Script.runInNewContext (vm.js:*) 10 at Object.runInNewContext (vm.js:*) 11 at Object.<anonymous> (*test*message*undefined_reference_in_new_context.js:*) 12 at Module._compile (internal/modules/cjs/loader.js:*) 13 at *..js (internal/modules/cjs/loader.js:*) 14 at Module.load (internal/modules/cjs/loader.js:*) 15 at Function.Module._load (internal/modules/cjs/loader.js:*:*) 16 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) 17