From 0100bb21dc72dc195d3d2218d4d7aa062a309eb7 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 10 Jul 2019 20:13:33 -0400 Subject: [PATCH] Add IsSimpleParameterList spec text to new test cases --- .../array-destructuring-param-strict-body.case | 6 ++++++ .../object-destructuring-param-strict-body.case | 6 ++++++ src/function-forms/rest-param-strict-body.case | 8 +++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/function-forms/array-destructuring-param-strict-body.case b/src/function-forms/array-destructuring-param-strict-body.case index ad0026b020..14adf316ee 100644 --- a/src/function-forms/array-destructuring-param-strict-body.case +++ b/src/function-forms/array-destructuring-param-strict-body.case @@ -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 } diff --git a/src/function-forms/object-destructuring-param-strict-body.case b/src/function-forms/object-destructuring-param-strict-body.case index b05e15bd20..00990cae3b 100644 --- a/src/function-forms/object-destructuring-param-strict-body.case +++ b/src/function-forms/object-destructuring-param-strict-body.case @@ -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 } diff --git a/src/function-forms/rest-param-strict-body.case b/src/function-forms/rest-param-strict-body.case index 00c9357891..b686165d96 100644 --- a/src/function-forms/rest-param-strict-body.case +++ b/src/function-forms/rest-param-strict-body.case @@ -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";