You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
312 B
JavaScript

'use strict';
const unhandledError = require("../");
unhandledError((error, context) => {
console.error("ERROR:", error);
console.error("CONTEXT:", context);
});
setTimeout(() => {
console.log("bar");
}, 500);
Promise.resolve().then(() => {
console.log("foo");
nonExistentFunction();
});