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>
22 lines
598 B
JavaScript
22 lines
598 B
JavaScript
// Copyright (C) 2015 André Bargull. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-function-definitions-static-semantics-early-errors
|
|
description: >
|
|
A SyntaxError is thrown if a function contains a non-simple parameter list and a UseStrict directive.
|
|
info: |
|
|
Static Semantics: Early Errors
|
|
|
|
It is a Syntax Error if ContainsUseStrict of FunctionBody is true and IsSimpleParameterList of FormalParameters is false.
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
$DONOTEVALUATE();
|
|
|
|
var f = function(a = 0) {
|
|
"use strict";
|
|
}
|