node/test/message/vm_display_syntax_error.js

10 lines
200 B
JavaScript

var common = require('../common');
var assert = require('assert');
var vm = require('vm');
console.error('beginning');
vm.runInThisContext('var 5;', { filename: 'test.vm' });
console.error('end');