overte/scripts/developer/tests/unit_tests/moduleTests/exceptions/exceptionInFunction.js
2017-03-07 16:36:10 -05:00

38 lines
350 B
JavaScript

/* eslint-env node */
// dummy lines to make sure exception line number is well below parent test script
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
function myfunc() {
throw new Error('exception on line 32 in myfunc');
}
module.exports = myfunc;
if (Script[module.filename] === 'throw') {
myfunc();
}