JsModule { bom_token: missing (optional), interpreter_token: missing (optional), directives: JsDirectiveList [], items: JsModuleItemList [ JsFunctionDeclaration { async_token: missing (optional), function_token: FUNCTION_KW@0..9 "function" [] [Whitespace(" ")], star_token: missing (optional), id: JsIdentifierBinding { name_token: IDENT@9..12 "foo" [] [], }, type_parameters: missing (optional), parameters: JsParameters { l_paren_token: L_PAREN@12..13 "(" [] [], items: JsParameterList [ JsBogusParameter { items: [ TRUE_KW@13..17 "true" [] [], ], }, ], r_paren_token: R_PAREN@17..19 ")" [] [Whitespace(" ")], }, return_type_annotation: missing (optional), body: JsFunctionBody { l_curly_token: L_CURLY@19..20 "{" [] [], directives: JsDirectiveList [], statements: JsStatementList [], r_curly_token: R_CURLY@20..21 "}" [] [], }, }, ], eof_token: EOF@21..22 "" [Newline("\n")] [], } 0: JS_MODULE@0..22 0: (empty) 1: (empty) 2: JS_DIRECTIVE_LIST@0..0 3: JS_MODULE_ITEM_LIST@0..21 0: JS_FUNCTION_DECLARATION@0..21 0: (empty) 1: FUNCTION_KW@0..9 "function" [] [Whitespace(" ")] 2: (empty) 3: JS_IDENTIFIER_BINDING@9..12 0: IDENT@9..12 "foo" [] [] 4: (empty) 5: JS_PARAMETERS@12..19 0: L_PAREN@12..13 "(" [] [] 1: JS_PARAMETER_LIST@13..17 0: JS_BOGUS_PARAMETER@13..17 0: TRUE_KW@13..17 "true" [] [] 2: R_PAREN@17..19 ")" [] [Whitespace(" ")] 6: (empty) 7: JS_FUNCTION_BODY@19..21 0: L_CURLY@19..20 "{" [] [] 1: JS_DIRECTIVE_LIST@20..20 2: JS_STATEMENT_LIST@20..20 3: R_CURLY@20..21 "}" [] [] 4: EOF@21..22 "" [Newline("\n")] [] -- formal_params_no_binding_element.js:1:14 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a parameter but instead found 'true'. > 1 │ function foo(true) {} │ ^^^^ 2 │ i Expected a parameter here. > 1 │ function foo(true) {} │ ^^^^ 2 │ -- function foo(true) {}