node/test/message/undefined_reference_in_new_...

12 lines
203 B
JavaScript

'use strict';
require('../common');
var assert = require('assert');
var vm = require('vm');
console.error('before');
// undefined reference
vm.runInNewContext('foo.bar = 5;');
console.error('after');