Base error costs on top-level trees skipped and lines of text skipped
Rather than on the total number of tokens skipped
This commit is contained in:
parent
27c9cb4175
commit
31d1160e21
3 changed files with 10 additions and 22 deletions
10
spec/fixtures/error_corpus/javascript_errors.txt
vendored
10
spec/fixtures/error_corpus/javascript_errors.txt
vendored
|
|
@ -56,12 +56,12 @@ if ({a: 'b'} {c: 'd'}) {
|
|||
|
||||
(program
|
||||
(if_statement
|
||||
(object (pair (identifier) (string)))
|
||||
(ERROR (object (pair (identifier) (string))))
|
||||
(object (pair (identifier) (string)))
|
||||
(statement_block
|
||||
(ERROR (function
|
||||
(formal_parameters (identifier))
|
||||
(statement_block (expression_statement (identifier)))))
|
||||
(expression_statement (function
|
||||
(formal_parameters (identifier))
|
||||
(statement_block (expression_statement (identifier))))))))
|
||||
(statement_block (expression_statement (identifier))))
|
||||
(ERROR (function
|
||||
(formal_parameters (identifier))
|
||||
(statement_block (expression_statement (identifier)))))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue