Re-format tests for SyntaxErrors

Authored via the following command:

   $ find test -type f -print0 | \
       xargs -0 sed \
         -i 's/^\(\s*\)negative:\s*SyntaxError\s*$/\1negative:\n\1  phase: early\n\1  type: SyntaxError/g'
This commit is contained in:
Mike Pennisi 2016-01-30 18:57:28 -05:00
parent cdc62ce0fa
commit 7d4b1d28ae
938 changed files with 2814 additions and 940 deletions

View File

@ -9,7 +9,9 @@ info: |
any duplicate entries for "__proto__" and at least two of those entries
were obtained from productions of the form
PropertyDefinition : PropertyName : AssignmentExpression .
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
({

View File

@ -7,7 +7,9 @@ description: >
semantics of the surrounding context.
The SV of EscapeSequence :: HexEscapeSequence is the SV of the
HexEscapeSequence.
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/

View File

@ -4,7 +4,9 @@
esid: sec-initializers-in-forin-statement-heads
description: >
for-in heads prohibit AssignmentExpressions
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var a;
throw NotEarlyError;

View File

@ -4,7 +4,9 @@
esid: sec-initializers-in-forin-statement-heads
description: >
for-in initializers with const are prohibited
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
throw NotEarlyError;
for (const a = 0 in {});

View File

@ -4,7 +4,9 @@
esid: sec-initializers-in-forin-statement-heads
description: >
for-in initializers with let are prohibited
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
throw NotEarlyError;
for (let a = 0 in {});

View File

@ -4,7 +4,9 @@
esid: sec-initializers-in-forin-statement-heads
description: >
for-in initializers in strict mode are prohibited
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
throw NotEarlyError;

View File

@ -4,7 +4,9 @@
esid: sec-initializers-in-forin-statement-heads
description: >
for-in initializers with ArrayBindingPatterns are always prohibited
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
throw NotEarlyError;
for (var [a] = 0 in {});

View File

@ -4,7 +4,9 @@
esid: sec-initializers-in-forin-statement-heads
description: >
for-in initializers with ObjectBindingPattern are always prohibited
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
throw NotEarlyError;
for (var {a} = 0 in {});

View File

@ -4,7 +4,9 @@
/*---
es5id: 10.5-1gs
description: Strict Mode - arguments cannot be assigned to in a strict function
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/

View File

@ -5,7 +5,9 @@
info: Check examples for automatic semicolon insertion from the Standart
es5id: 7.9.2_A1_T1
description: "{ 1 2 } 3 is not a valid sentence in the ECMAScript grammar"
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check examples for automatic semicolon insertion from the Standart
es5id: 7.9.2_A1_T3
description: for( a ; b \n ) is not a valid sentence in the ECMAScript grammar
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -7,7 +7,9 @@ es5id: 7.9.2_A1_T6
description: >
if(a>b) \n else c=d is not a valid sentence in the ECMAScript
grammar
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check {} for automatic semicolon insertion
es5id: 7.9_A10_T2
description: Checking if execution of "{}*1" fails
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check {} for automatic semicolon insertion
es5id: 7.9_A10_T4
description: Checking if execution of "({};)*1" fails
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check {} for automatic semicolon insertion
es5id: 7.9_A10_T6
description: Checking if execution of "{} \n * 1" fails
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check {} for automatic semicolon insertion
es5id: 7.9_A10_T8
description: Checking if execution of "{1 2} 3" fails
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check If Statement for automatic semicolon insertion
es5id: 7.9_A11_T4
description: Checking if execution of "if (false) x = 1 else x = -1" fails
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check If Statement for automatic semicolon insertion
es5id: 7.9_A11_T8
description: Use if (false) {x = 1}; \n else x=-1 and check x
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check Throw Statement for automatic semicolon insertion
es5id: 7.9_A4
description: Try use Throw \n Expression construction
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check Postfix Increment Operator for automatic semicolon insertion
es5id: 7.9_A5.1_T1
description: Try use Variable \n ++ construction
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check Postfix Decrement Operator for automatic semicolon insertion
es5id: 7.9_A5.3_T1
description: Try use Variable \n -- construction
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T1
description: For header is (semicolon \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T10
description: For header is (\n false \n semicolon)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T2
description: For header is (\n semicolon \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T3
description: For header is (\n semicolon)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T4
description: For header is (\n \n semicolon)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T5
description: For header is (false semicolon false\n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T6
description: For header is (false semicolon \n false)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T7
description: For header is (false \n semicolon \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T8
description: For header is (false \n semicolon false \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Use one semicolon
es5id: 7.9_A6.2_T9
description: For header is (\n semicolon false)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Don`t use semicolons
es5id: 7.9_A6.3_T1
description: For header is (\n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Don`t use semicolons
es5id: 7.9_A6.3_T2
description: For header is (\n \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Don`t use semicolons
es5id: 7.9_A6.3_T3
description: For header is (\n \n \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Don`t use semicolons
es5id: 7.9_A6.3_T4
description: For header is (\n false \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Don`t use semicolons
es5id: 7.9_A6.3_T5
description: For header is (false \n false \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Don`t use semicolons
es5id: 7.9_A6.3_T6
description: For header is (\n false \n false \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -8,7 +8,9 @@ info: >
Don`t use semicolons
es5id: 7.9_A6.3_T7
description: For header is (\n false \n false \n false \n)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -7,7 +7,9 @@ es5id: 7.9_A6.4_T1
description: >
Three semicolons. For header is (false semicolon false semicolon
false semicolon)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -7,7 +7,9 @@ es5id: 7.9_A6.4_T2
description: >
Three semicolons. For header is (false semicolon false two
semicolons false)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check Do-While Statement for automatic semicolon insertion
es5id: 7.9_A9_T6
description: Execute do \n while(false)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check Do-While Statement for automatic semicolon insertion
es5id: 7.9_A9_T7
description: Execute do \n\n while(false)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@
info: Check Do-While Statement for automatic semicolon insertion
es5id: 7.9_A9_T8
description: Execute do {}; \n while(false)
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
//CHECK#1

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
for declaration:
disallow initialization assignment
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
for (let x = 3 in {}) { }

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
for declaration:
disallow multiple lexical bindings, with and without initializer
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
for (let x = 3, y in {}) { }

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
for declaration:
disallow multiple lexical bindings, with initializer
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
for (let x = 3, y = 4 in {}) { }

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
for declaration:
disallow multiple lexical bindings, without and with initializer
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
for (let x, y = 4 in {}) { }

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
for declaration:
disallow multiple lexical bindings
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
for (let x, y in {}) { }

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
function declarations in statement position in strict mode:
do Statement while ( Expression )
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
do function g() {} while (false)

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
function declarations in statement position in strict mode:
for ( ;;) Statement
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
for (;false;) function g() {}

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
function declarations in statement position in strict mode:
if ( Expression ) Statement else Statement
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
if (true) {} else function g() {}

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
function declarations in statement position in strict mode:
if ( Expression ) Statement
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
if (true) function g() {}

View File

@ -5,7 +5,9 @@ es6id: 13.1
description: >
function declarations in statement position in strict mode:
while ( Expression ) Statement
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
while (false) function g() {}

View File

@ -5,7 +5,9 @@ es6id: B.3.3
description: >
redeclaration within block:
attempt to redeclare function declaration with function declaration
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
{ function f() {} function f() {} }

View File

@ -5,6 +5,8 @@ es6id: B.3.3
description: >
redeclaration within block:
attempt to redeclare function declaration with let
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
{ function f() {} let f; }

View File

@ -5,6 +5,8 @@ es6id: B.3.3
description: >
redeclaration within block:
attempt to redeclare function declaration with var
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
{ function f() {} var f; }

View File

@ -5,7 +5,9 @@ es6id: B.3.3
description: >
redeclaration within block:
attempt to redeclare var binding with let
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
{ var f; let f; }

View File

@ -5,7 +5,9 @@ es6id: B.3.3
description: >
redeclaration within block:
attempt to redeclare var with function declaration
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
{ var f; function f() {} }

View File

@ -5,7 +5,9 @@
info: Correct interpretation of multi line comments
es5id: 7.4_A2_T2
description: Try use /*CHECK#1/. This is not closed multi line comment
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
/*CHECK#1/

View File

@ -5,7 +5,9 @@
info: Multi line comments cannot nest
es5id: 7.4_A3
description: Try use nested comments
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
/*CHECK#1*/

View File

@ -5,7 +5,9 @@
info: Single and Multi line comments are used together
es5id: 7.4_A4_T1
description: Try use 2 close comment tags
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
/*CHECK#1*/

View File

@ -5,7 +5,9 @@
info: Single and Multi line comments are used together
es5id: 7.4_A4_T4
description: Try to open Multi line comment at the end of Single comment
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
/*CHECK#1*/

View File

@ -15,7 +15,9 @@ info: |
MultiLineComment ::
/* FirstCommentLine[opt] LineTerminator MultiLineCommentChars[opt] * / HTMLCloseComment[opt]
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
/*

View File

@ -14,7 +14,9 @@ info: |
HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
;-->

View File

@ -6,7 +6,9 @@ es5id: 10.1.1-2gs
description: >
Strict Mode - Use Strict Directive Prologue is ''use strict''
which lost the last character ';'
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [raw]
---*/

View File

@ -6,7 +6,9 @@ es5id: 10.1.1-5gs
description: >
Strict Mode - Use Strict Directive Prologue is ''use strict';'
which appears at the start of the code
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [raw]
---*/

View File

@ -6,7 +6,9 @@ es5id: 10.1.1-8gs
description: >
Strict Mode - Use Strict Directive Prologue is ''use strict';'
which appears twice in the code
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [raw]
---*/

View File

@ -6,7 +6,9 @@ es5id: 14.1-4gs
description: >
StrictMode - a Use Strict Directive followed by a strict mode
violation
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [raw]
---*/

View File

@ -6,7 +6,9 @@ es5id: 14.1-5gs
description: >
StrictMode - a Use Strict Directive embedded in a directive
prologue followed by a strict mode violation
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [raw]
---*/

View File

@ -5,9 +5,9 @@
info: If the parse fails, throw a SyntaxError exception (but see also clause 16)
es5id: 15.1.2.1_A2_T2
description: Checking if execution of "eval("x = 1; x\u000A++")" fails
negative: SyntaxError
---*/
//CHECK#1
var x;
eval("x = 1; x\u000A++");
assert.throws(SyntaxError, function() {
eval("x = 1; x\u000A++");
});

View File

@ -16,7 +16,9 @@ info: |
- It is a Syntax Error if ArrowParameters Contains YieldExpression is true.
features: [generators, default-parameters]
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
function *g() {

View File

@ -12,7 +12,9 @@ info: |
ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]
features: [default-parameters]
flags: [onlyStrict]
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var yield = 23;

View File

@ -11,7 +11,9 @@ info: |
ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]
features: [default-parameters]
flags: [onlyStrict]
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
(x = yield) => {};

View File

@ -15,6 +15,8 @@ description: >
ReservedWord : FutureReservedWord
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = enum => 1;

View File

@ -17,7 +17,9 @@ description: >
Strict Mode
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var af = package => 1;

View File

@ -15,6 +15,8 @@ description: >
ReservedWord : Keyword
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = switch => 1;

View File

@ -9,7 +9,9 @@ description: >
No parameter named "arguments"
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var af = arguments => 1;

View File

@ -10,7 +10,9 @@ description: >
No parameter named "eval"
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var af = eval => 1;

View File

@ -10,7 +10,9 @@ description: >
No parameter named "yield"
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var af = yield => 1;

View File

@ -7,6 +7,8 @@ description: >
Includes ...rest
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ...x => x;

View File

@ -14,7 +14,9 @@ description: >
No parameters named "arguments"
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var af = (arguments) => 1;

View File

@ -16,6 +16,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = (x, [x]) => 1;

View File

@ -16,6 +16,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ([x, x]) => 1;

View File

@ -18,6 +18,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ([x], ...x) => 1;

View File

@ -16,6 +16,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = (x, {x}) => 1;

View File

@ -18,6 +18,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = (x, {y: x}) => 1;

View File

@ -18,6 +18,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ({x}, {y: x}) => 1;

View File

@ -20,6 +20,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ({x}, ...x) => 1;

View File

@ -20,6 +20,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ({y: x}, ...x) => 1;

View File

@ -18,6 +18,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ({y: x, x}) => 1;

View File

@ -14,6 +14,8 @@ description: >
No duplicates, rest
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = (x, ...x) => 1;

View File

@ -14,6 +14,8 @@ description: >
No duplicates
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = (x, x) => 1;

View File

@ -14,7 +14,9 @@ description: >
No parameters named "eval"
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var af = (eval) => 1;

View File

@ -9,7 +9,9 @@ description: >
No parameter named "yield"
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var af = (yield) => 1;

View File

@ -6,7 +6,9 @@ description: >
ArrowFunction[In, Yield] :
ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = x
=> x;

View File

@ -8,7 +8,9 @@ description: >
No parens around ArrowParameters
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = x
=> {};

View File

@ -5,7 +5,9 @@ es6id: 14.2
description: >
ArrowFunction[In, Yield] :
ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var af = ()
=> {};

View File

@ -9,7 +9,9 @@ info: >
Static Semantics: Early Errors
It is a Syntax Error if ContainsUseStrict of ConciseBody is true and IsSimpleParameterList of ArrowParameters is false.
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
var f = (a = 0) => {

View File

@ -6,7 +6,9 @@ author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is *true* and IsSimpleParameterList of ArrowParameters is *false*.
negative: SyntaxError
negative:
phase: early
type: SyntaxError
---*/
async (x = 1) => {"use strict"}

View File

@ -5,7 +5,9 @@
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if FormalParameters contains arguments
negative: SyntaxError
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/

Some files were not shown because too many files have changed in this diff Show More