node/test/fixtures/vm-run-in-debug-context.js

5 lines
146 B
JavaScript

if (process.argv[2] === 'handle-fatal-exception')
process._fatalException = process.exit.bind(null, 42);
require('vm').runInDebugContext('*');