mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
8 lines
207 B
JavaScript
8 lines
207 B
JavaScript
process.on("uncaughtException", function(x) {
|
|
print("We got an expected uncaughtException: ",x);
|
|
result = x == "Whoa!";
|
|
});
|
|
setTimeout(function() { throw "Whoa!"; }, 1);
|
|
setTimeout(function() {}, 50);
|
|
|