MODULE@0..21 EXPR_STMT@0..8 CALL_EXPR@0..7 NAME_REF@0..3 IDENT@0..3 "foo" ARG_LIST@3..7 L_PAREN@3..4 "(" NAME_REF@4..5 IDENT@4..5 "a" COMMA@5..6 "," NAME_REF@6..7 IDENT@6..7 "b" SEMICOLON@7..8 ";" WHITESPACE@8..9 "\n" EXPR_STMT@9..16 CALL_EXPR@9..16 NAME_REF@9..12 IDENT@9..12 "foo" ARG_LIST@12..16 L_PAREN@12..13 "(" NAME_REF@13..14 IDENT@13..14 "a" COMMA@14..15 "," NAME_REF@15..16 IDENT@15..16 "b" WHITESPACE@16..17 " " VAR_DECL@17..21 VAR_KW@17..20 "var" WHITESPACE@20..21 "\n" ERROR@21..21 -- error[SyntaxError]: expected `')'` but instead found `;` ┌─ invalid_arg_list.js:1:8 │ 1 │ foo(a,b; │ ^ unexpected -- error[SyntaxError]: expected `')'` but instead found `var` ┌─ invalid_arg_list.js:2:9 │ 2 │ foo(a,b var │ ^^^ unexpected -- error[SyntaxError]: Expected a semicolon or an implicit semicolon after a statement, but found none ┌─ invalid_arg_list.js:2:9 │ 2 │ foo(a,b var │ --------^^^ │ │ │ │ │ An explicit or implicit semicolon is expected here... │ ...Which is required to end this statement -- error[SyntaxError]: Expected an identifier or pattern, but found none ┌─ invalid_arg_list.js:3:1 │ 3 │ │ ^ -- foo(a,b; foo(a,b var