mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
ff1efa6087
PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
22 lines
335 B
JavaScript
22 lines
335 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const vm = require('vm');
|
|
|
|
console.error('beginning');
|
|
|
|
try {
|
|
vm.runInThisContext('var 5;', {
|
|
filename: 'test.vm',
|
|
displayErrors: false
|
|
});
|
|
} catch (e) {}
|
|
|
|
console.error('middle');
|
|
|
|
vm.runInThisContext('var 5;', {
|
|
filename: 'test.vm',
|
|
displayErrors: false
|
|
});
|
|
|
|
console.error('end');
|