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 any duplicate entries for "__proto__" and at least two of those entries
were obtained from productions of the form were obtained from productions of the form
PropertyDefinition : PropertyName : AssignmentExpression . PropertyDefinition : PropertyName : AssignmentExpression .
negative: SyntaxError negative:
phase: early
type: SyntaxError
---*/ ---*/
({ ({

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,7 +14,9 @@ info: |
HTMLCloseComment :: HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt] 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: > description: >
Strict Mode - Use Strict Directive Prologue is ''use strict'' Strict Mode - Use Strict Directive Prologue is ''use strict''
which lost the last character ';' which lost the last character ';'
negative: SyntaxError negative:
phase: early
type: SyntaxError
flags: [raw] flags: [raw]
---*/ ---*/

View File

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

View File

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

View File

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

View File

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

View File

@ -5,9 +5,9 @@
info: If the parse fails, throw a SyntaxError exception (but see also clause 16) info: If the parse fails, throw a SyntaxError exception (but see also clause 16)
es5id: 15.1.2.1_A2_T2 es5id: 15.1.2.1_A2_T2
description: Checking if execution of "eval("x = 1; x\u000A++")" fails description: Checking if execution of "eval("x = 1; x\u000A++")" fails
negative: SyntaxError
---*/ ---*/
//CHECK#1
var x; 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. - It is a Syntax Error if ArrowParameters Contains YieldExpression is true.
features: [generators, default-parameters] features: [generators, default-parameters]
negative: SyntaxError negative:
phase: early
type: SyntaxError
---*/ ---*/
function *g() { function *g() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -9,7 +9,9 @@ info: >
Static Semantics: Early Errors Static Semantics: Early Errors
It is a Syntax Error if ContainsUseStrict of ConciseBody is true and IsSimpleParameterList of ArrowParameters is false. 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) => { var f = (a = 0) => {

View File

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

View File

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

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