Add error recovery to javascript if statements
This commit is contained in:
parent
6d84e71ceb
commit
2226234924
4 changed files with 823 additions and 785 deletions
14
spec/runtime/languages/javascript/errors.txt
Normal file
14
spec/runtime/languages/javascript/errors.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
==========================================
|
||||
recovers from errors in if statements
|
||||
==========================================
|
||||
stuff();
|
||||
if (*nonsense*) {
|
||||
*more-nonsense*;
|
||||
}
|
||||
moreStuff();
|
||||
---
|
||||
(program
|
||||
(statement (function_call (identifier)))
|
||||
(if_statement (ERROR)
|
||||
(statement_block (ERROR)))
|
||||
(statement (function_call (identifier))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue