mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
26 lines
418 B
JavaScript
26 lines
418 B
JavaScript
a = [];
|
|
try {
|
|
a.push("Before");
|
|
throw "Oh Noes!";
|
|
a.push("After");
|
|
} catch (e) {
|
|
a.push("Catch");
|
|
} finally {
|
|
a.push("Finally");
|
|
}
|
|
a.push("After");
|
|
|
|
try { // Optional catch Binding
|
|
a.push("Before");
|
|
throw "Oh Noes!";
|
|
a.push("After");
|
|
} catch {
|
|
a.push("Catch");
|
|
} finally {
|
|
a.push("Finally");
|
|
}
|
|
a.push("After");
|
|
|
|
a = a.join(",");
|
|
result = a=="Before,Catch,Finally,After,Before,Catch,Finally,After";
|