mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
16 lines
251 B
JavaScript
16 lines
251 B
JavaScript
try {
|
|
throw "Oh Noes!";
|
|
} finally {
|
|
console.log("Finally block executed");
|
|
result = 1;
|
|
}
|
|
console.log("exception uncaught so nothing from here is executed");
|
|
result = 0;
|
|
try {
|
|
result = 0;
|
|
} catch (e) {
|
|
result = 0;
|
|
} finally {
|
|
result = 0;
|
|
}
|