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:
parent
404de10a15
commit
c33d4aefc3
5 changed files with 132 additions and 1 deletions
9
Base/home/anon/js/try.js
Normal file
9
Base/home/anon/js/try.js
Normal 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");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue