1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

Rename and consolidate tests in future-reserved-words directory

This commit is contained in:
André Bargull 2017-05-02 12:09:21 -07:00
parent d23063c7aa
commit 053d63fd0d
80 changed files with 489 additions and 399 deletions

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-17-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: implements (implements)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var \u0069mplements = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-18-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: l\u0065t (let)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var l\u0065t = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-19-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: privat\u0065 (private)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var privat\u0065 = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-20-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: \u0070\u0075\u0062\u006c\u0069\u0063 (public)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var \u0070\u0075\u0062\u006c\u0069\u0063 = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-21-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: \u0079ield (yield)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var \u0079ield = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-22-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: inte\u0072face (interface)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var inte\u0072face = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-23-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: packag\u0065 (package)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var packag\u0065 = 123;");
});

@ -1,16 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-24-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8:
\u0070\u0072\u006f\u0074\u0065\u0063\u0074\u0065\u0064 (protected)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var \u0070\u0072\u006f\u0074\u0065\u0063\u0074\u0065\u0064 = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1-25-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: \u0073\u0074\u0061\u0074\u0069\u0063 (static)
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var \u0073\u0074\u0061\u0074\u0069\u0063 = 123;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-1-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'implements' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var implements = 1;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-2-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord 'let'
occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var let = 1;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-3-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'private' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var private = 1;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-4-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'public' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var public = 1;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-5-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'yield' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var yield = 1;")
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-6-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'interface' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var interface = 1;")
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-7-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'package' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var package = 1;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-8-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'protected' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var protected = 1;");
});

@ -1,15 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.6.1.2-9-s
description: >
Strict Mode - SyntaxError is thrown when FutureReservedWord
'static' occurs in strict mode code
flags: [onlyStrict]
---*/
assert.throws(SyntaxError, function() {
eval("var static = 1;");
});

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var implements = 1;

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var interface = 1;

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var package = 1;

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var private = 1;

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var protected = 1;

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var public = 1;

@ -1,14 +0,0 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
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
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var static = 1;

@ -7,6 +7,6 @@ description: >
SyntaxError isn't thrown when '_implements' occurs
---*/
var _implements = 1;
var _implements = 1;
assert.sameValue(_implements, 1, '_implements');

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "abstract" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.1
description: Checking if execution of "abstract=1" succeeds
info: >
`abstract` was removed from the list of future reserved words in ECMAScript 5.
---*/
var abstract = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "boolean" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.2
description: Checking if execution of "boolean=1" succeeds
info: >
`boolean` was removed from the list of future reserved words in ECMAScript 5.
---*/
var boolean = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "byte" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.3
description: Checking if execution of "byte=1" succeeds
info: >
`byte` was removed from the list of future reserved words in ECMAScript 5.
---*/
var byte = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "char" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.4
description: Checking if execution of "char=1" succeeds
info: >
`char` was removed from the list of future reserved words in ECMAScript 5.
---*/
var char = 1;

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "class" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.5
description: Checking if execution of "class=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "const" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.6
description: Checking if execution of "const=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "debugger" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.7
description: Checking if execution of "debugger=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "double" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.8
description: Checking if execution of "double=1" succeeds
info: >
`double` was removed from the list of future reserved words in ECMAScript 5.
---*/
var double = 1;

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "enum" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.9
description: Checking if execution of "enum=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "export" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.10
description: Checking if execution of "export=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "extends" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.11
description: Checking if execution of "extends=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "final" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.12
description: Checking if execution of "final=1" succeeds
info: >
`final` was removed from the list of future reserved words in ECMAScript 5.
---*/
var final = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "float" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.13
description: Checking if execution of "float=1" succeeds
info: >
`float` was removed from the list of future reserved words in ECMAScript 5.
---*/
var float = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "goto" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.14
description: Checking if execution of "goto=1" succeeds
info: >
`goto` was removed from the list of future reserved words in ECMAScript 5.
---*/
var goto = 1;

@ -7,6 +7,6 @@ description: >
SyntaxError isn't thrown when 'implement' occurs
---*/
var implement = 1;
var implement = 1;
assert.sameValue(implement, 1, 'implement');

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-17-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: implements (implements)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var \u0069mplements = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-1-s
description: >
Strict Mode - SyntaxError is thrown when 'implements' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var implements = 1;

@ -7,6 +7,6 @@ description: >
SyntaxError isn't thrown when 'Implements' occurs
---*/
var Implements = 1;
var Implements = 1;
assert.sameValue(Implements, 1, 'Implements');

@ -7,6 +7,6 @@ description: >
SyntaxError isn't thrown when 'IMPLEMENTS' occurs
---*/
var IMPLEMENTS = 1;
var IMPLEMENTS = 1;
assert.sameValue(IMPLEMENTS, 1, 'IMPLEMENTS');

@ -7,6 +7,6 @@ description: >
SyntaxError isn't thrown when 'implements0' occurs
---*/
var implements0 = 1;
var implements0 = 1;
assert.sameValue(implements0, 1, 'implements0');

@ -7,6 +7,6 @@ description: >
SyntaxError isn't thrown when 'implementss' occurs
---*/
var implementss = 1;
var implementss = 1;
assert.sameValue(implementss, 1, 'implementss');

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "import" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.16
description: Checking if execution of "import=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "int" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.17
description: Checking if execution of "int=1" succeeds
info: >
`int` was removed from the list of future reserved words in ECMAScript 5.
---*/
var int = 1;

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-22-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: inte\u0072face (interface)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var inte\u0072face = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-6-s
description: >
Strict Mode - SyntaxError is thrown when 'interface' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var interface = 1;

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-18-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: l\u0065t (let)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var l\u0065t = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-2-s
description: >
Strict Mode - SyntaxError is thrown when 'let' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var let = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "long" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.19
description: Checking if execution of "long=1" succeeds
info: >
`long` was removed from the list of future reserved words in ECMAScript 5.
---*/
var long = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "native" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.20
description: Checking if execution of "native=1" succeeds
info: >
`native` was removed from the list of future reserved words in ECMAScript 5.
---*/
var native = 1;

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-23-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: packag\u0065 (package)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var packag\u0065 = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-7-s
description: >
Strict Mode - SyntaxError is thrown when 'package' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var package = 1;

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-19-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: privat\u0065 (private)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var privat\u0065 = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-3-s
description: >
Strict Mode - SyntaxError is thrown when 'private' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var private = 1;

@ -0,0 +1,23 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-24-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8:
\u0070\u0072\u006f\u0074\u0065\u0063\u0074\u0065\u0064 (protected)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var \u0070\u0072\u006f\u0074\u0065\u0063\u0074\u0065\u0064 = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-8-s
description: >
Strict Mode - SyntaxError is thrown when 'protected' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var protected = 1;

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-20-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: \u0070\u0075\u0062\u006c\u0069\u0063 (public)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var \u0070\u0075\u0062\u006c\u0069\u0063 = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-4-s
description: >
Strict Mode - SyntaxError is thrown when 'public' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var public = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "short" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.25
description: Checking if execution of "short=1" succeeds
info: >
`short` was removed from the list of future reserved words in ECMAScript 5.
---*/
var short = 1;

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-25-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: \u0073\u0074\u0061\u0074\u0069\u0063 (static)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var \u0073\u0074\u0061\u0074\u0069\u0063 = 123;

@ -0,0 +1,21 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-9-s
description: >
Strict Mode - SyntaxError is thrown when 'static' occurs in strict mode code
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var static = 1;

@ -2,9 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "super" token can not be used as identifier
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2_A1.27
description: Checking if execution of "super=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 and await.
negative:
phase: early
type: SyntaxError

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "synchronized" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.28
description: Checking if execution of "synchronized=1" succeeds
info: >
`synchronized` was removed from the list of future reserved words in ECMAScript 5.
---*/
var synchronized = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "throws" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.29
description: Checking if execution of "throws=1" succeeds
info: >
`throws` was removed from the list of future reserved words in ECMAScript 5.
---*/
var throws = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "transient" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.30
description: Checking if execution of "transient=1" succeeds
info: >
`transient` was removed from the list of future reserved words in ECMAScript 5.
---*/
var transient = 1;

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "volatile" token can be used as identifier
esid: sec-future-reserved-words
es5id: 7.6.1.2_A1.31
description: Checking if execution of "volatile=1" succeeds
info: >
`volatile` was removed from the list of future reserved words in ECMAScript 5.
---*/
var volatile = 1;

@ -0,0 +1,22 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1-21-s
description: >
7.6 - SyntaxError expected: reserved words used as Identifier
Names in UTF8: \u0079ield (yield)
info: |
Identifier : IdentifierName but not ReservedWord
It is a Syntax Error if this phrase is contained in strict mode code and the
StringValue of IdentifierName is: "implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield".
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var \u0079ield = 123;

@ -0,0 +1,20 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-identifiers-static-semantics-early-errors
es5id: 7.6.1.2-5-s
description: >
Strict Mode - SyntaxError is thrown when ReservedWord
'yield' occurs in strict mode code
info: |
BindingIdentifier : yield
It is a Syntax Error if the code matched by this production is contained in strict mode code.
negative:
phase: early
type: SyntaxError
flags: [onlyStrict]
---*/
var yield = 1;