Skip to content
Snippets Groups Projects
Commit 4d95f88c authored by André Bargull's avatar André Bargull
Browse files

Rename and consolidate tests in keywords directory

parent bd7c280e
No related branches found
No related tags found
No related merge requests found
Showing
with 135 additions and 19 deletions
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "break" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.1 es5id: 7.6.1.1_A1.1
description: Checking if execution of "break=1" fails description: Checking if execution of "break=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "case" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.2 es5id: 7.6.1.1_A1.2
description: Checking if execution of "case=1" fails description: Checking if execution of "case=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "catch" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.3 es5id: 7.6.1.1_A1.3
description: Checking if execution of "catch=1" fails description: Checking if execution of "catch=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "continue" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.4 es5id: 7.6.1.1_A1.4
description: Checking if execution of "contunue=1" fails description: Checking if execution of "contunue=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "default" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.5 es5id: 7.6.1.1_A1.5
description: Checking if execution of "default=1" fails description: Checking if execution of "default=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "delete" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.6 es5id: 7.6.1.1_A1.6
description: Checking if execution of "delete=1" fails description: Checking if execution of "delete=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "do" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.7 es5id: 7.6.1.1_A1.7
description: Checking if execution of "do=1" fails description: Checking if execution of "do=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "else" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.8 es5id: 7.6.1.1_A1.8
description: Checking if execution of "else=1" fails description: Checking if execution of "else=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "finally" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.9 es5id: 7.6.1.1_A1.9
description: Checking if execution of "finally=1" fails description: Checking if execution of "finally=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "for" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.10 es5id: 7.6.1.1_A1.10
description: Checking if execution of "for=1" fails description: Checking if execution of "for=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "function" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.11 es5id: 7.6.1.1_A1.11
description: Checking if execution of "function=1" fails description: Checking if execution of "function=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "if" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.12 es5id: 7.6.1.1_A1.12
description: Checking if execution of "if=1" fails description: Checking if execution of "if=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "in" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.13 es5id: 7.6.1.1_A1.13
description: Checking if execution of "in=1" fails description: Checking if execution of "in=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "instanceof" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.14 es5id: 7.6.1.1_A1.14
description: Checking if execution of "instanceof=1" fails description: Checking if execution of "instanceof=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "new" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.15 es5id: 7.6.1.1_A1.15
description: Checking if execution of "new=1" fails description: Checking if execution of "new=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "return" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.16 es5id: 7.6.1.1_A1.16
description: Checking if execution of "return=1" fails description: Checking if execution of "return=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "switch" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.17 es5id: 7.6.1.1_A1.17
description: Checking if execution of "switch=1" fails description: Checking if execution of "switch=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,12 +2,20 @@ ...@@ -2,12 +2,20 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "this" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.18 es5id: 7.6.1.1_A1.18
description: Checking if execution of "this=1" fails description: Checking if execution of "this=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: ReferenceError type: SyntaxError
---*/ ---*/
this = 1; // It's tempting to write `this = 0`, but that'd be a test to validate `this`
// is not a valid simple assignment target, cf. tests in language/expressions/assignment.
// Also see: sec-semantics-static-semantics-isvalidsimpleassignmenttarget
({this});
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "throw" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.19 es5id: 7.6.1.1_A1.19
description: Checking if execution of "throw=1" fails description: Checking if execution of "throw=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
...@@ -2,9 +2,14 @@ ...@@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
info: The "try" token can not be used as identifier esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.1_A1.20 es5id: 7.6.1.1_A1.20
description: Checking if execution of "try=1" fails description: Checking if execution of "try=1" fails
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if StringValue of IdentifierName is the same String
value as the StringValue of any ReservedWord except for yield.
negative: negative:
phase: early phase: early
type: SyntaxError type: SyntaxError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment