Skip to content

Commit

Permalink
Reverts erroneous ExpectedArgumentCount fix
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeom committed Dec 22, 2024
1 parent 0b7acb4 commit da2ef5d
Show file tree
Hide file tree
Showing 2 changed files with 65,820 additions and 65,825 deletions.
5 changes: 4 additions & 1 deletion JS-Interpreters/ecmaref6/section 9/section_9.2.esl
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,10 @@ function ExpectedArgumentCount(paramsDetails) {
| { type: "Identifier" } -> count := count + 1;
| { type: "AssignmentPattern" } -> ;
| { type: "RestElement" } -> return count;
| default -> throw SyntaxError("Unexpected argument type");
| default ->
/* throw SyntaxError("Unexpected argument type") */
/* FIXME: Apparentely this is this ok? */
;
}
return count;
}
Loading

0 comments on commit da2ef5d

Please sign in to comment.