You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should divide this parser into TryStatement, Catch, Finally and CatchParameter, as we can see in the spec. Then, decide if we should parse Catch or Finally depending on the peek(). Those parsers should then expect() the catch/finally keywords.
Activity
Razican commentedon May 7, 2020
Good "catch"!
The issue is in
boa/src/syntax/parser/statement/try_stm/mod.rs#L67. Wepeek()the next token, and check if it's thecatchkeyword, but then, we don't consume it.We should divide this parser into
TryStatement,Catch,FinallyandCatchParameter, as we can see in the spec. Then, decide if we should parseCatchorFinallydepending on thepeek(). Those parsers should thenexpect()thecatch/finallykeywords.abhijeetbhagat commentedon May 7, 2020
I can take this up if no one else is working.
HalidOdat commentedon May 7, 2020
Sure! Tell us if you need any help 👍