From fadfa19be881b8a46230e9001d65644c71481fcc Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Fri, 2 Feb 2024 02:39:06 -0500 Subject: [PATCH] chore: update javascript error trees --- test/fixtures/error_corpus/javascript_errors.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/fixtures/error_corpus/javascript_errors.txt b/test/fixtures/error_corpus/javascript_errors.txt index e2f21176..9b92e10c 100644 --- a/test/fixtures/error_corpus/javascript_errors.txt +++ b/test/fixtures/error_corpus/javascript_errors.txt @@ -80,10 +80,10 @@ if ({a: 'b'} {c: 'd'}) { (expression_statement (assignment_expression (identifier) - (function (formal_parameters (identifier)) (statement_block (expression_statement (identifier))))) + (function_expression (formal_parameters (identifier)) (statement_block (expression_statement (identifier))))) (MISSING ";")) (expression_statement - (function (formal_parameters (identifier)) (statement_block (expression_statement (identifier)))))))) + (function_expression (formal_parameters (identifier)) (statement_block (expression_statement (identifier)))))))) =================================================== Extra tokens at the end of the file @@ -148,14 +148,14 @@ const h = `i ${j(k} l` (lexical_declaration (variable_declarator (identifier) - (template_string (template_substitution - (augmented_assignment_expression (identifier) (MISSING identifier)))))) + (template_string (string_fragment) (template_substitution + (augmented_assignment_expression (identifier) (MISSING identifier))) (string_fragment)))) (lexical_declaration (variable_declarator (identifier) - (template_string (template_substitution (call_expression + (template_string (string_fragment) (template_substitution (call_expression (identifier) - (arguments (identifier) (MISSING ")")))))))) + (arguments (identifier) (MISSING ")")))) (string_fragment))))) ========================================================= Long sequences of invalid tokens