2015-05-19 19:00:06 +08:00
|
|
|
'use strict';
|
2013-08-25 06:53:24 +08:00
|
|
|
var common = require('../common');
|
|
|
|
var assert = require('assert');
|
|
|
|
var vm = require('vm');
|
|
|
|
|
|
|
|
console.error('beginning');
|
|
|
|
|
|
|
|
try {
|
2015-05-19 19:00:06 +08:00
|
|
|
vm.runInThisContext('var 5;', {
|
|
|
|
filename: 'test.vm',
|
|
|
|
displayErrors: false
|
|
|
|
});
|
2013-08-25 06:53:24 +08:00
|
|
|
} catch (e) {}
|
|
|
|
|
|
|
|
console.error('middle');
|
|
|
|
|
|
|
|
vm.runInThisContext('var 5;', {
|
2015-05-19 19:00:06 +08:00
|
|
|
filename: 'test.vm',
|
|
|
|
displayErrors: false
|
2013-08-25 06:53:24 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
console.error('end');
|