0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/test/message/vm_dont_display_runtime_error.js
Rich Trott a030c5cf49 test: remove unused assert module imports
Many test modules load assert but do not use it. This change removes
those instances.

It also removes a handful of other unused variables when they were
nearby.

PR-URL: https://github.com/nodejs/node/pull/4438
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2015-12-30 11:45:34 -08:00

22 lines
367 B
JavaScript

'use strict';
require('../common');
var vm = require('vm');
console.error('beginning');
try {
vm.runInThisContext('throw new Error("boo!")', {
filename: 'test.vm',
displayErrors: false
});
} catch (e) {}
console.error('middle');
vm.runInThisContext('throw new Error("boo!")', {
filename: 'test.vm',
displayErrors: false
});
console.error('end');