1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 03:15:07 +00:00
serenity/Base/home/anon/js/try.js
Andreas Kling c33d4aefc3 LibJS: Parse "try", "catch" and "finally"
This is the first step towards support exceptions. :^)
2020-03-24 16:14:10 +01:00

9 lines
164 B
JavaScript

try {
console.log("you should see me");
foo();
console.log("not me");
} catch (e) {
console.log("catch");
} finally {
console.log("finally");
}