Add IsSimpleParameterList spec text to new test cases

This commit is contained in:
Richard Gibson 2019-07-10 20:13:33 -04:00
parent 7f395d6d87
commit 0100bb21dc
3 changed files with 19 additions and 1 deletions

View File

@ -9,6 +9,12 @@ negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
info: | info: |
13.3.3.4 Static Semantics: IsSimpleParameterList
BindingElement : BindingPattern
1. Return false.
14.1.2 Static Semantics: Early Errors 14.1.2 Static Semantics: Early Errors
FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody } FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }

View File

@ -9,6 +9,12 @@ negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
info: | info: |
13.3.3.4 Static Semantics: IsSimpleParameterList
BindingElement : BindingPattern
1. Return false.
14.1.2 Static Semantics: Early Errors 14.1.2 Static Semantics: Early Errors
FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody } FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }

View File

@ -9,6 +9,12 @@ negative:
phase: parse phase: parse
type: SyntaxError type: SyntaxError
info: | info: |
14.1.13 Static Semantics: IsSimpleParameterList
FormalParameters : FormalParameterList , FunctionRestParameter
1. Return false.
14.1.2 Static Semantics: Early Errors 14.1.2 Static Semantics: Early Errors
FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody } FunctionDeclaration : function BindingIdentifier ( FormalParameters ) { FunctionBody }
@ -92,6 +98,6 @@ features: [rest-parameters]
//- setup //- setup
$DONOTEVALUATE(); $DONOTEVALUATE();
//- params //- params
...rest a,...rest
//- body //- body
"use strict"; "use strict";