Vendor 500 new real Test262 tests (total 550), relax curation filters for now-supported features (arrow functions, classes, destructuring, spread/rest, for-in/of, template literals, let/const, instanceof), add automated triage script, and track pass rate as a CI metric. 190/550 pass (34.5%). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
857 B
JavaScript
34 lines
857 B
JavaScript
// Copyright 2019 Mike Pennisi. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-arrow-function-definitions
|
|
description: Formal parameters may not contain duplicates
|
|
info: |
|
|
# 14.2 Arrow Function Definitions
|
|
|
|
When the production
|
|
|
|
ArrowParameters:CoverParenthesizedExpressionAndArrowParameterList
|
|
|
|
is recognized the following grammar is used to refine the interpretation
|
|
of CoverParenthesizedExpressionAndArrowParameterList:
|
|
|
|
ArrowFormalParameters[Yield, Await]:
|
|
(UniqueFormalParameters[?Yield, ?Await])
|
|
|
|
# 14.1.2 Static Semantics: Early Errors
|
|
|
|
UniqueFormalParameters:FormalParameters
|
|
|
|
- It is a Syntax Error if BoundNames of FormalParameters contains any
|
|
duplicate elements.
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
|
|
0, (a, a) => { };
|