mirror of https://github.com/tc39/test262.git
Add IsSimpleParameterList spec text to new test cases
This commit is contained in:
parent
7f395d6d87
commit
0100bb21dc
|
@ -9,6 +9,12 @@ negative:
|
|||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
13.3.3.4 Static Semantics: IsSimpleParameterList
|
||||
|
||||
BindingElement : BindingPattern
|
||||
|
||||
1. Return false.
|
||||
|
||||
14.1.2 Static Semantics: Early Errors
|
||||
|
||||
FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }
|
||||
|
|
|
@ -9,6 +9,12 @@ negative:
|
|||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
13.3.3.4 Static Semantics: IsSimpleParameterList
|
||||
|
||||
BindingElement : BindingPattern
|
||||
|
||||
1. Return false.
|
||||
|
||||
14.1.2 Static Semantics: Early Errors
|
||||
|
||||
FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }
|
||||
|
|
|
@ -9,6 +9,12 @@ negative:
|
|||
phase: parse
|
||||
type: SyntaxError
|
||||
info: |
|
||||
14.1.13 Static Semantics: IsSimpleParameterList
|
||||
|
||||
FormalParameters : FormalParameterList , FunctionRestParameter
|
||||
|
||||
1. Return false.
|
||||
|
||||
14.1.2 Static Semantics: Early Errors
|
||||
|
||||
FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }
|
||||
|
@ -92,6 +98,6 @@ features: [rest-parameters]
|
|||
//- setup
|
||||
$DONOTEVALUATE();
|
||||
//- params
|
||||
...rest
|
||||
a,...rest
|
||||
//- body
|
||||
"use strict";
|
||||
|
|
Loading…
Reference in New Issue