vscode-js-debug/testWorkspace/simpleNode/skippedScript.js

20 строки
233 B
JavaScript

exports.uncaught = () => {
throw 'uncaught';
}
exports.caught = () => {
try {
throw 'caught';
} catch (e) {
// ignored
}
}
exports.rethrown = () => {
try {
throw 'rethrown';
} catch (e) {
throw e;
}
}