mirror of https://github.com/tc39/test262.git
Merge pull request #67 from smikes/negative-addErrorName-bestPractice
Remove negative flag from test bed. Replace with specific errors. Other misc. fixes.
This commit is contained in:
commit
595a36b252
|
@ -6,7 +6,7 @@ info: Function declaration within an "if" statement is not allowed
|
|||
description: >
|
||||
Declaring function within an "if" statement that is declared
|
||||
within the function declaration
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
|
|
@ -6,7 +6,7 @@ info: FunctionDeclaration within a "do-while" Block is not allowed
|
|||
description: >
|
||||
Declaring a function within a "do-while" loop that is within a
|
||||
function declaration itself
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
|
|
@ -6,7 +6,7 @@ info: FunctionDeclaration within a "while" Statement is not allowed
|
|||
description: >
|
||||
Checking if declaring a function within a "while" Statement that
|
||||
is in a function body leads to an exception
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
|
|
@ -6,7 +6,7 @@ info: FunctionDeclaration within a "for-in" Statement is not allowed
|
|||
description: >
|
||||
Declaring function within a "for-in" Statement that is within
|
||||
function declaration
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function(){
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
info: "EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit"
|
||||
description: "HexEscapeSequence :: x0G is incorrect"
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
//CHECK#
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
info: "HexEscapeSequence :: x HexDigit is incorrect"
|
||||
description: "HexDigit :: 1"
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/*---
|
||||
info: "HexEscapeSequence :: x HexDigit is incorrect"
|
||||
description: "HexDigit :: A"
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.2_A5_T1
|
||||
description: Use TAB (U+0009)
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u0009x;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.2_A5_T2
|
||||
description: Use VERTICAL TAB (U+000B)
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u000Bx;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.2_A5_T3
|
||||
description: Use FORM FEED (U+000C)
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u000Cx;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.2_A5_T4
|
||||
description: Use SPACE (U+0020)
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u0020x;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.2_A5_T5
|
||||
description: Use NO-BREAK SPACE (U+00A0)
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u00A0x;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: LINE FEED (U+000A) within strings is not allowed
|
||||
es5id: 7.3_A2.1_T1
|
||||
description: Insert LINE FEED (\u000A) into string
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: LINE FEED (U+000A) within strings is not allowed
|
||||
es5id: 7.3_A2.1_T2
|
||||
description: Use real LINE FEED into string
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: CARRIAGE RETURN (U+000D) within strings is not allowed
|
||||
es5id: 7.3_A2.2_T1
|
||||
description: Insert CARRIAGE RETURN (\u000D) into string
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: CARRIAGE RETURN (U+000D) within strings is not allowed
|
||||
es5id: 7.3_A2.2_T2
|
||||
description: Insert real CARRIAGE RETURN into string
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: LINE SEPARATOR (U+2028) within strings is not allowed
|
||||
es5id: 7.3_A2.3
|
||||
description: Insert LINE SEPARATOR (\u2028) into string
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: PARAGRAPH SEPARATOR (U+2029) within strings is not allowed
|
||||
es5id: 7.3_A2.4
|
||||
description: Insert PARAGRAPH SEPARATOR (\u2029) into string
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain LINE FEED (U+000A) inside
|
||||
es5id: 7.3_A3.1_T1
|
||||
description: Insert LINE FEED (\u000A) into single line comment
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain LINE FEED (U+000A) inside
|
||||
es5id: 7.3_A3.1_T2
|
||||
description: Insert LINE FEED (\u000A) into begin of single line comment
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain LINE FEED (U+000A) inside
|
||||
es5id: 7.3_A3.1_T3
|
||||
description: Insert real LINE FEED into single line comment
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain CARRIAGE RETURN (U+000D) inside
|
||||
es5id: 7.3_A3.2_T1
|
||||
description: Insert CARRIAGE RETURN (\u000D) into single line comment
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain CARRIAGE RETURN (U+000D) inside
|
||||
es5id: 7.3_A3.2_T2
|
||||
description: Insert CARRIAGE RETURN (\u000D) into begin of single line comment
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain CARRIAGE RETURN (U+000D) inside
|
||||
es5id: 7.3_A3.2_T3
|
||||
description: Insert real CARRIAGE RETURN into single line comment
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain LINE SEPARATOR (U+2028) inside
|
||||
es5id: 7.3_A3.3_T1
|
||||
description: Insert LINE SEPARATOR (\u2028) into single line comment
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain LINE SEPARATOR (U+2028) inside
|
||||
es5id: 7.3_A3.3_T2
|
||||
description: Insert LINE SEPARATOR (\u2028) into begin of single line comment
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single line comments can not contain PARAGRAPH SEPARATOR (U+2029) inside
|
||||
es5id: 7.3_A3.4_T1
|
||||
description: Insert PARAGRAPH SEPARATOR (\u2029) into single line comment
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -7,7 +7,7 @@ es5id: 7.3_A3.4_T2
|
|||
description: >
|
||||
Insert PARAGRAPH SEPARATOR (\u2029) into begin of single line
|
||||
comment
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
consisting of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.3_A6_T1
|
||||
description: Insert LINE FEED (U+000A) in var x
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u000Ax;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
consisting of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.3_A6_T2
|
||||
description: Insert CARRIAGE RETURN (U+000D) in var x
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u000Dx;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
consisting of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.3_A6_T3
|
||||
description: Insert LINE SEPARATOR (U+2028) in var x
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u2028x;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
consisting of six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.3_A6_T4
|
||||
description: Insert PARAGRAPH SEPARATOR (U+2029) in var x
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var\u2029x;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Correct interpretation of multi line comments
|
||||
es5id: 7.4_A2_T2
|
||||
description: Try use /*CHECK#1/. This is not closed multi line comment
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
/*CHECK#1/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Multi line comments cannot nest
|
||||
es5id: 7.4_A3
|
||||
description: Try use nested comments
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: Single and Multi line comments are used together
|
||||
es5id: 7.4_A4_T1
|
||||
description: Try use 2 close comment tags
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
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
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
/*CHECK#1*/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "break" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.1
|
||||
description: Checking if execution of "break=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
break = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "for" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.10
|
||||
description: Checking if execution of "for=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
for = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "function" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.11
|
||||
description: Checking if execution of "function=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "if" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.12
|
||||
description: Checking if execution of "if=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
if = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "in" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.13
|
||||
description: Checking if execution of "in=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
in = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "instanceof" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.14
|
||||
description: Checking if execution of "instanceof=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
instanceof = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "new" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.15
|
||||
description: Checking if execution of "new=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
new = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "return" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.16
|
||||
description: Checking if execution of "return=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
return = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "switch" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.17
|
||||
description: Checking if execution of "switch=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
switch = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "this" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.18
|
||||
description: Checking if execution of "this=1" fails
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
this = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "throw" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.19
|
||||
description: Checking if execution of "throw=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
throw = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "case" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.2
|
||||
description: Checking if execution of "case=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
case = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "try" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.20
|
||||
description: Checking if execution of "try=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
try = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "typeof" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.21
|
||||
description: Checking if execution of "typeof=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
typeof = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "var" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.22
|
||||
description: Checking if execution of "var=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "void" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.23
|
||||
description: Checking if execution of "void=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
void = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "while" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.24
|
||||
description: Checking if execution of "while=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
while = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "with" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.25
|
||||
description: Checking if execution of "with=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
with = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "catch" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.3
|
||||
description: Checking if execution of "catch=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
catch = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "continue" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.4
|
||||
description: Checking if execution of "contunue=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
continue = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "default" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.5
|
||||
description: Checking if execution of "default=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
default = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "delete" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.6
|
||||
description: Checking if execution of "delete=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
delete = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "do" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.7
|
||||
description: Checking if execution of "do=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
do = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "else" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.8
|
||||
description: Checking if execution of "else=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
else = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "finally" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.9
|
||||
description: Checking if execution of "finally=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
finally = 1;
|
||||
|
|
|
@ -9,7 +9,7 @@ es5id: 7.6.1.2-1gs
|
|||
description: >
|
||||
Strict Mode - SyntaxError is thrown when FutureReservedWord
|
||||
'implements' occurs in strict mode code
|
||||
negative: ^((?!NotEarlyError).)*$
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "export" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.10
|
||||
description: Checking if execution of "export=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var export = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "extends" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.11
|
||||
description: Checking if execution of "extends=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var extends = 1;
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
info: The "implements" token can not be used as identifier in strict code
|
||||
es5id: 7.6.1.2_A1.15
|
||||
description: Checking if execution of "implements=1" fails in strict code
|
||||
flags:
|
||||
- onlyStrict
|
||||
- negative
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "import" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.16
|
||||
description: Checking if execution of "import=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var import = 1;
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
info: The "interface" token can not be used as identifier in strict code
|
||||
es5id: 7.6.1.2_A1.18
|
||||
description: Checking if execution of "interface = 1" fails in strict code
|
||||
flags:
|
||||
- onlyStrict
|
||||
- negative
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
info: The "package" token can not be used as identifier in strict code
|
||||
es5id: 7.6.1.2_A1.21
|
||||
description: Checking if execution of "package=1" fails in strict code
|
||||
flags:
|
||||
- onlyStrict
|
||||
- negative
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
info: The "private" token can not be used as identifier in strict code
|
||||
es5id: 7.6.1.2_A1.22
|
||||
description: Checking if execution of "private=1" fails in strict code
|
||||
flags:
|
||||
- onlyStrict
|
||||
- negative
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
info: The "protected" token can not be used as identifier in strict code
|
||||
es5id: 7.6.1.2_A1.23
|
||||
description: Checking if execution of "protected=1" fails in strict code
|
||||
flags:
|
||||
- onlyStrict
|
||||
- negative
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
info: The "public" token can not be used as identifier in strict code
|
||||
es5id: 7.6.1.2_A1.24
|
||||
description: Checking if execution of "public=1" fails in strict code
|
||||
flags:
|
||||
- onlyStrict
|
||||
- negative
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
info: The "static" token can not be used as identifier in strict code
|
||||
es5id: 7.6.1.2_A1.26
|
||||
description: Checking if execution of "static=1" fails in strict code
|
||||
flags:
|
||||
- onlyStrict
|
||||
- negative
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "super" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.27
|
||||
description: Checking if execution of "super=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var super = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "class" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.5
|
||||
description: Checking if execution of "class=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var class = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "const" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.6
|
||||
description: Checking if execution of "const=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var const = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "debugger" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.7
|
||||
description: Checking if execution of "debugger=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var debugger = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "enum" token can not be used as identifier
|
||||
es5id: 7.6.1.2_A1.9
|
||||
description: Checking if execution of "enum=1" fails
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var enum = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "null" token can not be used as identifier
|
||||
es5id: 7.6.1_A1.1
|
||||
description: Checking if execution of "null = 1" fails
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
null = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "true" token can not be used as identifier
|
||||
es5id: 7.6.1_A1.2
|
||||
description: Checking if execution of "true=1" fails
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
true = 1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: The "false" token can not be used as identifier
|
||||
es5id: 7.6.1_A1.3
|
||||
description: Checking if execution of "false=1" fails
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
false = 1;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T1
|
||||
description: Try to use {} as a Unicode \u007B\u007D
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
\u007B\u007D;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T10
|
||||
description: Try to use / as a Unicode \u002F
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
1\u002F2;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T2
|
||||
description: Try to use () as Unicode \u00281\u0029
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
\u00281\u0029;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T3
|
||||
description: Try to use [] as a Unicode \u005B\u005D
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
\u005B\u005D;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T4
|
||||
description: Try to use ; as a Unicode \u003B
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
\u003B;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T5
|
||||
description: Try to use . as a Unicode \u002E
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
x = 1;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T6
|
||||
description: Try to use , as a Unicode \u002C
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
1\u002C2;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T7
|
||||
description: Try to use + as a Unicode \u002B
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
1\u002B2;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T8
|
||||
description: Try to use - as a Unicode \u002D
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
1\u002D2;
|
||||
|
|
|
@ -7,7 +7,7 @@ info: >
|
|||
six characters, namely \u plus four hexadecimal digits
|
||||
es5id: 7.7_A2_T9
|
||||
description: Try to use * as a Unicode \u002A
|
||||
flags: [negative]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
1\u002A2;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/*---
|
||||
es5id: 7.8.3-1gs
|
||||
description: Strict Mode - octal extension(010) is forbidden in strict mode
|
||||
negative: ^((?!NotEarlyError).)*$
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ es5id: 7.8.3-2gs
|
|||
description: >
|
||||
Strict Mode - octal extension is forbidden in strict mode (after a
|
||||
hex number is assigned to a variable)
|
||||
negative: ^((?!NotEarlyError).)*$
|
||||
negative: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T1
|
||||
description: "ExponentPart :: e DecimalDigits"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T2
|
||||
description: "ExponentPart :: E DecimalDigits"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T3
|
||||
description: "ExponentPart :: e DecimalDigits"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T4
|
||||
description: "ExponentPart :: E DecimalDigits"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T5
|
||||
description: "ExponentPart :: e DecimalDigits"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T6
|
||||
description: "ExponentPart :: E DecimalDigits"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T7
|
||||
description: "ExponentPart :: e 0"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
info: "DecimalLiteral :: ExponentPart is incorrect"
|
||||
es5id: 7.8.3_A4.1_T8
|
||||
description: "ExponentPart :: E 0"
|
||||
flags: [negative]
|
||||
negative: ReferenceError
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue