3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-06-20 00:09:04 +02:00
overte-JulianGro/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();
}