mirror of https://github.com/tc39/test262.git
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:
parent
cdc62ce0fa
commit
7d4b1d28ae
|
@ -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
|
||||
---*/
|
||||
|
||||
({
|
||||
|
|
|
@ -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]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {});
|
||||
|
|
|
@ -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 {});
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {});
|
||||
|
|
|
@ -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 {});
|
||||
|
|
|
@ -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]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {}) { }
|
||||
|
||||
|
|
|
@ -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 {}) { }
|
||||
|
||||
|
|
|
@ -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 {}) { }
|
||||
|
||||
|
|
|
@ -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 {}) { }
|
||||
|
||||
|
|
|
@ -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 {}) { }
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {}
|
||||
|
|
|
@ -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() {} }
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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() {} }
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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*/
|
||||
|
|
|
@ -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*/
|
||||
|
|
|
@ -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*/
|
||||
|
|
|
@ -15,7 +15,9 @@ info: |
|
|||
|
||||
MultiLineComment ::
|
||||
/* FirstCommentLine[opt] LineTerminator MultiLineCommentChars[opt] * / HTMLCloseComment[opt]
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
/*
|
||||
|
|
|
@ -14,7 +14,9 @@ info: |
|
|||
|
||||
HTMLCloseComment ::
|
||||
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
;-->
|
||||
|
|
|
@ -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]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -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++");
|
||||
});
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) => {};
|
||||
|
|
|
@ -15,6 +15,8 @@ description: >
|
|||
|
||||
ReservedWord : FutureReservedWord
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = enum => 1;
|
||||
|
|
|
@ -17,7 +17,9 @@ description: >
|
|||
|
||||
Strict Mode
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
var af = package => 1;
|
||||
|
|
|
@ -15,6 +15,8 @@ description: >
|
|||
|
||||
ReservedWord : Keyword
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = switch => 1;
|
||||
|
|
|
@ -9,7 +9,9 @@ description: >
|
|||
|
||||
No parameter named "arguments"
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
var af = arguments => 1;
|
||||
|
|
|
@ -10,7 +10,9 @@ description: >
|
|||
|
||||
No parameter named "eval"
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
var af = eval => 1;
|
||||
|
|
|
@ -10,7 +10,9 @@ description: >
|
|||
|
||||
No parameter named "yield"
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
var af = yield => 1;
|
||||
|
|
|
@ -7,6 +7,8 @@ description: >
|
|||
|
||||
Includes ...rest
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = ...x => x;
|
||||
|
|
|
@ -14,7 +14,9 @@ description: >
|
|||
|
||||
No parameters named "arguments"
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
var af = (arguments) => 1;
|
||||
|
|
|
@ -16,6 +16,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = (x, [x]) => 1;
|
||||
|
|
|
@ -16,6 +16,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = ([x, x]) => 1;
|
||||
|
|
|
@ -18,6 +18,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = ([x], ...x) => 1;
|
||||
|
|
|
@ -16,6 +16,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = (x, {x}) => 1;
|
||||
|
|
|
@ -18,6 +18,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = (x, {y: x}) => 1;
|
||||
|
|
|
@ -18,6 +18,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = ({x}, {y: x}) => 1;
|
||||
|
|
|
@ -20,6 +20,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = ({x}, ...x) => 1;
|
||||
|
|
|
@ -20,6 +20,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = ({y: x}, ...x) => 1;
|
||||
|
|
|
@ -18,6 +18,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = ({y: x, x}) => 1;
|
||||
|
|
|
@ -14,6 +14,8 @@ description: >
|
|||
|
||||
No duplicates, rest
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = (x, ...x) => 1;
|
||||
|
|
|
@ -14,6 +14,8 @@ description: >
|
|||
|
||||
No duplicates
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = (x, x) => 1;
|
||||
|
|
|
@ -14,7 +14,9 @@ description: >
|
|||
|
||||
No parameters named "eval"
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
var af = (eval) => 1;
|
||||
|
|
|
@ -9,7 +9,9 @@ description: >
|
|||
|
||||
No parameter named "yield"
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
var af = (yield) => 1;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -8,7 +8,9 @@ description: >
|
|||
|
||||
No parens around ArrowParameters
|
||||
|
||||
negative: SyntaxError
|
||||
negative:
|
||||
phase: early
|
||||
type: SyntaxError
|
||||
---*/
|
||||
var af = x
|
||||
=> {};
|
||||
|
|
|
@ -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 = ()
|
||||
=> {};
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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"}
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue