1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 02:55:07 +00:00

LibJS: Parse "try", "catch" and "finally"

This is the first step towards support exceptions. :^)
This commit is contained in:
Andreas Kling 2020-03-24 14:03:55 +01:00
parent 404de10a15
commit c33d4aefc3
5 changed files with 132 additions and 1 deletions

9
Base/home/anon/js/try.js Normal file
View file

@ -0,0 +1,9 @@
try {
console.log("you should see me");
foo();
console.log("not me");
} catch (e) {
console.log("catch");
} finally {
console.log("finally");
}