mirror of https://github.com/tc39/test262.git
Add tests for Unicode escape sequences
- Re-organize existing tests for identifiers Name files according to their content (not their ES5 ID). Move tests for IdentifierName and LabelIdentifier to more appropriate directories. - Simplify and correct tests Instead of asserting successful runtime evaluation using `eval`, rely on the test runner's ability to detect syntax errors. Update the test bodies to test the grammar referenced by their ES5 ID and description--the IdentifierStart pattern. - Use `negative` frontmatter to assert SyntaxErrors - Remove redundant tests - Use `assert.equal` helper function - Add equivalent tests for literal unicode chars - Add tests for variable-length unicode escape
This commit is contained in:
parent
f4e17963f8
commit
e0d59b0ede
|
@ -1,21 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierStart :: $"
|
||||
es5id: 7.6_A1.2_T3
|
||||
description: The $ as unicode character \u0024
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var identifier = String.fromCharCode(0x0024);
|
||||
var result;
|
||||
eval("var " + identifier + "=1; result = " + identifier);
|
||||
if (result !== 1) {
|
||||
$ERROR('#1: var identifier = String.fromCharCode(0x0024); eval("var " + identifier + "=1; result = " + identifier); result === 1');
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if ("$" !== String.fromCharCode(0x0024)) {
|
||||
$ERROR('#2: "$" === String.fromCharCode(0x0024)');
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierStart :: _"
|
||||
es5id: 7.6_A1.3_T3
|
||||
description: The _ as unicode character \u005F
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var identifier = String.fromCharCode(0x005F);
|
||||
var result;
|
||||
eval("var " + identifier + "=1; result = " + identifier);
|
||||
if (result !== 1) {
|
||||
$ERROR('#1: var identifier = String.fromCharCode(0x005F); eval("var " + identifier + "=1; result = " + identifier); result === 1');
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if ("_" !== String.fromCharCode(0x005F)) {
|
||||
$ERROR('#2: "_" === String.fromCharCode(0x005F)');
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T1
|
||||
description: "IdentifierStart :: UnicodeLetter"
|
||||
---*/
|
||||
|
||||
var result;
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
var identifier = "x" + "x";
|
||||
eval("var " + identifier + "=1; result = xx");
|
||||
if (result !== 1) {
|
||||
$ERROR('#1.1: var identifier = "x" + "x"; eval("var " + identifier + "=1; result = xx"); result === 1. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#1.2: var identifier = "x" + "x"; eval("var " + identifier + "=1; result = xx"); result === 1. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try {
|
||||
var identifier = "x" + String.fromCharCode(0x0078);
|
||||
eval("var " + identifier + "=2; result = xx");
|
||||
if (result !== 2) {
|
||||
$ERROR('#2.1: var identifier = "x" + String.fromCharCode(0x0078); eval("var " + identifier + "=2; result = xx"); result === 2. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#2.2: var identifier = "x" + String.fromCharCode(0x0078); eval("var " + identifier + "=2; result = xx"); result === 2. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try {
|
||||
var identifier = String.fromCharCode(0x0078) + String.fromCharCode(0x0078);
|
||||
eval("var " + identifier + "=3; result = xx");
|
||||
if (result !== 3) {
|
||||
$ERROR('#3.1: var identifier = String.fromCharCode(0x0078) + String.fromCharCode(0x0078); eval("var " + identifier + "=3; result = xx"); result === 3. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#3.2: var identifier = String.fromCharCode(0x0078) + String.fromCharCode(0x0078); eval("var " + identifier + "=3; result = xx"); result === 3. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try {
|
||||
var identifier = "$" + String.fromCharCode(0x0078);
|
||||
eval("var " + identifier + "=4; result = $x");
|
||||
if (result !== 4) {
|
||||
$ERROR('#4.1: var identifier = "$" + String.fromCharCode(0x0078); eval("var " + identifier + "=4; result = $x"); result === 4. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#4.2: var identifier = "$" + String.fromCharCode(0x0078); eval("var " + identifier + "=4; result = $x"); result === 4. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
try {
|
||||
var identifier = "_" + String.fromCharCode(0x0078);
|
||||
eval("var " + identifier + "=5; result = _x");
|
||||
if (result !== 5) {
|
||||
$ERROR('#5.1: var identifier = "_" + String.fromCharCode(0x0078); eval("var " + identifier + "=5; result = _x"); result === 5. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#5.2: var identifier = "_" + String.fromCharCode(0x0078); eval("var " + identifier + "=5; result = _x"); result === 5. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
try {
|
||||
var \u0078x = 6;
|
||||
if (xx !== 6) {
|
||||
$ERROR('#6.1: var \\u0078x = 1; xx === 6. Actual: ' + (xx));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#6.2: var \\u0078x = 1; xx === 6. Actual: ' + (xx));
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T2
|
||||
description: "IdentifierStart :: $"
|
||||
---*/
|
||||
|
||||
var result;
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
var identifier = "x" + "$";
|
||||
eval("var " + identifier + "=1; result = x$");
|
||||
if (result !== 1) {
|
||||
$ERROR('#1.1: var identifier = "x" + "$"; eval("var " + identifier + "=1; result = x$"); result === 1. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#1.2: var identifier = "x" + "$"; eval("var " + identifier + "=1; result = x$"); result === 1. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try {
|
||||
var identifier = String.fromCharCode(0x0078) + "$";
|
||||
eval("var " + identifier + "=2; result = x$");
|
||||
if (result !== 2) {
|
||||
$ERROR('#2.1: var identifier = String.fromCharCode(0x0078) + "$"; eval("var " + identifier + "=2; result = x$"); result === 2. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#2.2: var identifier = String.fromCharCode(0x0078) + "$"; eval("var " + identifier + "=2; result = x$"); result === 2. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try {
|
||||
var identifier = "$" + "$";
|
||||
eval("var " + identifier + "=3; result = $$");
|
||||
if (result !== 3) {
|
||||
$ERROR('#3.1: var identifier = "$" + "$"; eval("var " + identifier + "=3; result = $$"); result === 3. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#3.2: var identifier = "$" + "$"; eval("var " + identifier + "=3; result = $$"); result === 3. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try {
|
||||
var identifier = String.fromCharCode(0x0024) + String.fromCharCode(0x0024);
|
||||
eval("var " + identifier + "=4; result = $$");
|
||||
if (result !== 4) {
|
||||
$ERROR('#4.1: var identifier = String.fromCharCode(0x0024) + String.fromCharCode(0x0024); eval("var " + identifier + "=4; result = $$"); result === 4. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#4.2: var identifier = String.fromCharCode(0x0024) + String.fromCharCode(0x0024); eval("var " + identifier + "=4; result = $$"); result === 4. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
try {
|
||||
var identifier = "_" + "$";
|
||||
eval("var " + identifier + "=5; result = _$");
|
||||
if (result !== 5) {
|
||||
$ERROR('#5.1: var identifier = "_" + "$"; eval("var " + identifier + "=5; result = _$"); result === 5. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#5.2: var identifier = "_" + "$"; eval("var " + identifier + "=5; result = _$"); result === 5. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
try {
|
||||
var \u0078$ = 6;
|
||||
if (x$ !== 6) {
|
||||
$ERROR('#6.1: var \\u0078$ = 1; x$ === 6. Actual: ' + (x$));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#6.2: var \\u0078$ = 1; x$ === 6. Actual: ' + (x$));
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T3
|
||||
description: "IdentifierStart :: _"
|
||||
---*/
|
||||
|
||||
var result;
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
var identifier = "x" + "_";
|
||||
eval("var " + identifier + "=1; result = x_");
|
||||
if (result !== 1) {
|
||||
$ERROR('#1.1: var identifier = "x" + "_"; eval("var " + identifier + "=1; result = x_"); result === 1. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#1.2: var identifier = "x" + "_"; eval("var " + identifier + "=1; result = x_"); result === 1. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try {
|
||||
var identifier = String.fromCharCode(0x0078) + "_";
|
||||
eval("var " + identifier + "=2; result = x_");
|
||||
if (result !== 2) {
|
||||
$ERROR('#2.1: var identifier = String.fromCharCode(0x0078) + "_"; eval("var " + identifier + "=2; result = x_"); result === 2. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#2.2: var identifier = String.fromCharCode(0x0078) + "_"; eval("var " + identifier + "=2; result = x_"); result === 2. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try {
|
||||
var identifier = "_" + "_";
|
||||
eval("var " + identifier + "=3; result = __");
|
||||
if (result !== 3) {
|
||||
$ERROR('#3.1: var identifier = "_" + "_"; eval("var " + identifier + "=3; result = __"); result === 3. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#3.2: var identifier = "_" + "_"; eval("var " + identifier + "=3; result = __"); result === 3. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try {
|
||||
var identifier = String.fromCharCode(0x005F) + String.fromCharCode(0x005F);
|
||||
eval("var " + identifier + "=4; result = __");
|
||||
if (result !== 4) {
|
||||
$ERROR('#4.1: var identifier = String.fromCharCode(0x005F) + String.fromCharCode(0x005F); eval("var " + identifier + "=4; result = __"); result === 4. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#4.2: var identifier = String.fromCharCode(0x005F) + String.fromCharCode(0x005F); eval("var " + identifier + "=4; result = __"); result === 4. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
try {
|
||||
var identifier = "_" + "_";
|
||||
eval("var " + identifier + "=5; result = __");
|
||||
if (result !== 5) {
|
||||
$ERROR('#5.1: var identifier = "_" + "_"; eval("var " + identifier + "=5; result = __"); result === 5. Actual: ' + (result));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#5.2: var identifier = "_" + "_"; eval("var " + identifier + "=5; result = __"); result === 5. Actual: ' + (result));
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
try {
|
||||
var \u0078_ = 6;
|
||||
if (x_ !== 6) {
|
||||
$ERROR('#6.1: var \\u0078_ = 1; x_ === 6. Actual: ' + (x_));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#6.2: var \\u0078_ = 1; x_ === 6. Actual: ' + (x_));
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T4
|
||||
description: "IdentifierStart :: \\UnicodeEscapeSequence"
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
try {
|
||||
var x\u0078 = 1;
|
||||
if (xx !== 1) {
|
||||
$ERROR('#1.1: var x\\u0078 = 1; xx === 1. Actual: ' + (xx));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#1.2: var x\\u0078 = 1; xx === 1. Actual: ' + (xx));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
try {
|
||||
var \u0078\u0078 = 2;
|
||||
if (xx !== 2) {
|
||||
$ERROR('#2.1: var \\u0078\\u0078 = 1; xx === 2. Actual: ' + (xx));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#2.2: var \\u0078\\u0078 = 1; xx === 2. Actual: ' + (xx));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
try {
|
||||
var \u0024\u0024 = 3;
|
||||
if ($$ !== 3) {
|
||||
$ERROR('#3.1: var \\u0024\\u0024 = 1; $$ === 3. Actual: ' + ($$));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#3.2: var \\u0024\\u0024 = 1; $$ === 3. Actual: ' + ($$));
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
try {
|
||||
var \u005F\u005F = 4;
|
||||
if (__ !== 4) {
|
||||
$ERROR('#4.1: var \\u005F\\u005F = 1; __ === 4. Actual: ' + (__));
|
||||
}
|
||||
} catch (e) {
|
||||
$ERROR('#4.2: var \\u005F\\u005F = 1; __ === 4. Actual: ' + (__));
|
||||
}
|
|
@ -1,114 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Correct interpretation of ENGLISH ALPHABET
|
||||
es5id: 7.6_A4.1_T1
|
||||
description: Check ENGLISH CAPITAL ALPHABET
|
||||
---*/
|
||||
|
||||
//CHECK#A-Z
|
||||
var \u0041 = 1;
|
||||
if (A !== 1) {
|
||||
$ERROR('#A');
|
||||
}
|
||||
var \u0042 = 1;
|
||||
if (B !== 1) {
|
||||
$ERROR('#B');
|
||||
}
|
||||
var \u0043 = 1;
|
||||
if (C !== 1) {
|
||||
$ERROR('#C');
|
||||
}
|
||||
var \u0044 = 1;
|
||||
if (D !== 1) {
|
||||
$ERROR('#D');
|
||||
}
|
||||
var \u0045 = 1;
|
||||
if (E !== 1) {
|
||||
$ERROR('#E');
|
||||
}
|
||||
var \u0046 = 1;
|
||||
if (F !== 1) {
|
||||
$ERROR('#F');
|
||||
}
|
||||
var \u0047 = 1;
|
||||
if (G !== 1) {
|
||||
$ERROR('#G');
|
||||
}
|
||||
var \u0048 = 1;
|
||||
if (H !== 1) {
|
||||
$ERROR('#H');
|
||||
}
|
||||
var \u0049 = 1;
|
||||
if (I !== 1) {
|
||||
$ERROR('#I');
|
||||
}
|
||||
var \u004A = 1;
|
||||
if (J !== 1) {
|
||||
$ERROR('#J');
|
||||
}
|
||||
var \u004B = 1;
|
||||
if (K !== 1) {
|
||||
$ERROR('#K');
|
||||
}
|
||||
var \u004C = 1;
|
||||
if (L !== 1) {
|
||||
$ERROR('#L');
|
||||
}
|
||||
var \u004D = 1;
|
||||
if (M !== 1) {
|
||||
$ERROR('#M');
|
||||
}
|
||||
var \u004E = 1;
|
||||
if (N !== 1) {
|
||||
$ERROR('#N');
|
||||
}
|
||||
var \u004F = 1;
|
||||
if (O !== 1) {
|
||||
$ERROR('#O');
|
||||
}
|
||||
var \u0050 = 1;
|
||||
if (P !== 1) {
|
||||
$ERROR('#P');
|
||||
}
|
||||
var \u0051 = 1;
|
||||
if (Q !== 1) {
|
||||
$ERROR('#Q');
|
||||
}
|
||||
var \u0052 = 1;
|
||||
if (R !== 1) {
|
||||
$ERROR('#R');
|
||||
}
|
||||
var \u0053 = 1;
|
||||
if (S !== 1) {
|
||||
$ERROR('#S');
|
||||
}
|
||||
var \u0054 = 1;
|
||||
if (T !== 1) {
|
||||
$ERROR('#T');
|
||||
}
|
||||
var \u0055 = 1;
|
||||
if (U !== 1) {
|
||||
$ERROR('#U');
|
||||
}
|
||||
var \u0056 = 1;
|
||||
if (V !== 1) {
|
||||
$ERROR('#V');
|
||||
}
|
||||
var \u0057 = 1;
|
||||
if (W !== 1) {
|
||||
$ERROR('#W');
|
||||
}
|
||||
var \u0058 = 1;
|
||||
if (X !== 1) {
|
||||
$ERROR('#X');
|
||||
}
|
||||
var \u0059 = 1;
|
||||
if (Y !== 1) {
|
||||
$ERROR('#Y');
|
||||
}
|
||||
var \u005A = 1;
|
||||
if (Z !== 1) {
|
||||
$ERROR('#Z');
|
||||
}
|
|
@ -1,142 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Correct interpretation of RUSSIAN ALPHABET
|
||||
es5id: 7.6_A4.2_T1
|
||||
description: Check RUSSIAN CAPITAL ALPHABET
|
||||
---*/
|
||||
|
||||
//CHECK#А-Я
|
||||
var \u0410 = 1;
|
||||
if (А !== 1) {
|
||||
$ERROR('#А');
|
||||
}
|
||||
var \u0411 = 1;
|
||||
if (Б !== 1) {
|
||||
$ERROR('#Б');
|
||||
}
|
||||
var \u0412 = 1;
|
||||
if (В !== 1) {
|
||||
$ERROR('#В');
|
||||
}
|
||||
var \u0413 = 1;
|
||||
if (Г !== 1) {
|
||||
$ERROR('#Г');
|
||||
}
|
||||
var \u0414 = 1;
|
||||
if (Д !== 1) {
|
||||
$ERROR('#Д');
|
||||
}
|
||||
var \u0415 = 1;
|
||||
if (Е !== 1) {
|
||||
$ERROR('#Е');
|
||||
}
|
||||
var \u0416 = 1;
|
||||
if (Ж !== 1) {
|
||||
$ERROR('#Ж');
|
||||
}
|
||||
var \u0417 = 1;
|
||||
if (З !== 1) {
|
||||
$ERROR('#З');
|
||||
}
|
||||
var \u0418 = 1;
|
||||
if (И !== 1) {
|
||||
$ERROR('#И');
|
||||
}
|
||||
var \u0419 = 1;
|
||||
if (Й !== 1) {
|
||||
$ERROR('#Й');
|
||||
}
|
||||
var \u041A = 1;
|
||||
if (К !== 1) {
|
||||
$ERROR('#К');
|
||||
}
|
||||
var \u041B = 1;
|
||||
if (Л !== 1) {
|
||||
$ERROR('#Л');
|
||||
}
|
||||
var \u041C = 1;
|
||||
if (М !== 1) {
|
||||
$ERROR('#М');
|
||||
}
|
||||
var \u041D = 1;
|
||||
if (Н !== 1) {
|
||||
$ERROR('#Н');
|
||||
}
|
||||
var \u041E = 1;
|
||||
if (О !== 1) {
|
||||
$ERROR('#О');
|
||||
}
|
||||
var \u041F = 1;
|
||||
if (П !== 1) {
|
||||
$ERROR('#П');
|
||||
}
|
||||
var \u0420 = 1;
|
||||
if (Р !== 1) {
|
||||
$ERROR('#Р');
|
||||
}
|
||||
var \u0421 = 1;
|
||||
if (С !== 1) {
|
||||
$ERROR('#С');
|
||||
}
|
||||
var \u0422 = 1;
|
||||
if (Т !== 1) {
|
||||
$ERROR('#Т');
|
||||
}
|
||||
var \u0423 = 1;
|
||||
if (У !== 1) {
|
||||
$ERROR('#У');
|
||||
}
|
||||
var \u0424 = 1;
|
||||
if (Ф !== 1) {
|
||||
$ERROR('#Ф');
|
||||
}
|
||||
var \u0425 = 1;
|
||||
if (Х !== 1) {
|
||||
$ERROR('#Х');
|
||||
}
|
||||
var \u0426 = 1;
|
||||
if (Ц !== 1) {
|
||||
$ERROR('#Ц');
|
||||
}
|
||||
var \u0427 = 1;
|
||||
if (Ч !== 1) {
|
||||
$ERROR('#Ч');
|
||||
}
|
||||
var \u0428 = 1;
|
||||
if (Ш !== 1) {
|
||||
$ERROR('#Ш');
|
||||
}
|
||||
var \u0429 = 1;
|
||||
if (Щ !== 1) {
|
||||
$ERROR('#Щ');
|
||||
}
|
||||
var \u042A = 1;
|
||||
if (Ъ !== 1) {
|
||||
$ERROR('#Ъ');
|
||||
}
|
||||
var \u042B = 1;
|
||||
if (Ы !== 1) {
|
||||
$ERROR('#Ы');
|
||||
}
|
||||
var \u042C = 1;
|
||||
if (Ь !== 1) {
|
||||
$ERROR('#Ь');
|
||||
}
|
||||
var \u042D = 1;
|
||||
if (Э !== 1) {
|
||||
$ERROR('#Э');
|
||||
}
|
||||
var \u042E = 1;
|
||||
if (Ю !== 1) {
|
||||
$ERROR('#Ю');
|
||||
}
|
||||
var \u042F = 1;
|
||||
if (Я !== 1) {
|
||||
$ERROR('#Я');
|
||||
}
|
||||
var \u0401 = 1;
|
||||
if (Ё !== 1) {
|
||||
$ERROR('#Ё');
|
||||
}
|
|
@ -1,142 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Correct interpretation of RUSSIAN ALPHABET
|
||||
es5id: 7.6_A4.2_T2
|
||||
description: Check RUSSIAN SMALL ALPHABET
|
||||
---*/
|
||||
|
||||
//CHECK#а-я
|
||||
var \u0430 = 1;
|
||||
if (а !== 1) {
|
||||
$ERROR('#а');
|
||||
}
|
||||
var \u0431 = 1;
|
||||
if (б !== 1) {
|
||||
$ERROR('#б');
|
||||
}
|
||||
var \u0432 = 1;
|
||||
if (в !== 1) {
|
||||
$ERROR('#в');
|
||||
}
|
||||
var \u0433 = 1;
|
||||
if (г !== 1) {
|
||||
$ERROR('#г');
|
||||
}
|
||||
var \u0434 = 1;
|
||||
if (д !== 1) {
|
||||
$ERROR('#д');
|
||||
}
|
||||
var \u0435 = 1;
|
||||
if (е !== 1) {
|
||||
$ERROR('#е');
|
||||
}
|
||||
var \u0436 = 1;
|
||||
if (ж !== 1) {
|
||||
$ERROR('#ж');
|
||||
}
|
||||
var \u0437 = 1;
|
||||
if (з !== 1) {
|
||||
$ERROR('#з');
|
||||
}
|
||||
var \u0438 = 1;
|
||||
if (и !== 1) {
|
||||
$ERROR('#и');
|
||||
}
|
||||
var \u0439 = 1;
|
||||
if (й !== 1) {
|
||||
$ERROR('#й');
|
||||
}
|
||||
var \u043A = 1;
|
||||
if (к !== 1) {
|
||||
$ERROR('#к');
|
||||
}
|
||||
var \u043B = 1;
|
||||
if (л !== 1) {
|
||||
$ERROR('#л');
|
||||
}
|
||||
var \u043C = 1;
|
||||
if (м !== 1) {
|
||||
$ERROR('#м');
|
||||
}
|
||||
var \u043D = 1;
|
||||
if (н !== 1) {
|
||||
$ERROR('#н');
|
||||
}
|
||||
var \u043E = 1;
|
||||
if (о !== 1) {
|
||||
$ERROR('#о');
|
||||
}
|
||||
var \u043F = 1;
|
||||
if (п !== 1) {
|
||||
$ERROR('#п');
|
||||
}
|
||||
var \u0440 = 1;
|
||||
if (р !== 1) {
|
||||
$ERROR('#р');
|
||||
}
|
||||
var \u0441 = 1;
|
||||
if (с !== 1) {
|
||||
$ERROR('#с');
|
||||
}
|
||||
var \u0442 = 1;
|
||||
if (т !== 1) {
|
||||
$ERROR('#т');
|
||||
}
|
||||
var \u0443 = 1;
|
||||
if (у !== 1) {
|
||||
$ERROR('#у');
|
||||
}
|
||||
var \u0444 = 1;
|
||||
if (ф !== 1) {
|
||||
$ERROR('#ф');
|
||||
}
|
||||
var \u0445 = 1;
|
||||
if (х !== 1) {
|
||||
$ERROR('#х');
|
||||
}
|
||||
var \u0446 = 1;
|
||||
if (ц !== 1) {
|
||||
$ERROR('#ц');
|
||||
}
|
||||
var \u0447 = 1;
|
||||
if (ч !== 1) {
|
||||
$ERROR('#ч');
|
||||
}
|
||||
var \u0448 = 1;
|
||||
if (ш !== 1) {
|
||||
$ERROR('#ш');
|
||||
}
|
||||
var \u0449 = 1;
|
||||
if (щ !== 1) {
|
||||
$ERROR('#щ');
|
||||
}
|
||||
var \u044A = 1;
|
||||
if (ъ !== 1) {
|
||||
$ERROR('#ъ');
|
||||
}
|
||||
var \u044B = 1;
|
||||
if (ы !== 1) {
|
||||
$ERROR('#ы');
|
||||
}
|
||||
var \u044C = 1;
|
||||
if (ь !== 1) {
|
||||
$ERROR('#ь');
|
||||
}
|
||||
var \u044D = 1;
|
||||
if (э !== 1) {
|
||||
$ERROR('#э');
|
||||
}
|
||||
var \u044E = 1;
|
||||
if (ю !== 1) {
|
||||
$ERROR('#ю');
|
||||
}
|
||||
var \u044F = 1;
|
||||
if (я !== 1) {
|
||||
$ERROR('#я');
|
||||
}
|
||||
var \u0451 = 1;
|
||||
if (ё !== 1) {
|
||||
$ERROR('#ё');
|
||||
}
|
|
@ -1,50 +0,0 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Correct interpretation of DIGITS
|
||||
es5id: 7.6_A4.3_T1
|
||||
description: Identifier is $+ANY_DIGIT
|
||||
---*/
|
||||
|
||||
//CHECK#0-9
|
||||
var $\u0030 = 0;
|
||||
if ($0 !== 0) {
|
||||
$ERROR('#0: $\\u0030 = 0; $0 === 0');
|
||||
}
|
||||
var $\u0031 = 1;
|
||||
if ($1 !== 1) {
|
||||
$ERROR('#1: $\\u0031 = 1; $1 === 1');
|
||||
}
|
||||
var $\u0032 = 2;
|
||||
if ($2 !== 2) {
|
||||
$ERROR('#2: $\\u0032 = 2; $2 === 2');
|
||||
}
|
||||
var $\u0033 = 3;
|
||||
if ($3 !== 3) {
|
||||
$ERROR('#3: $\\u0033 = 3; $3 === 3');
|
||||
}
|
||||
var $\u0034 = 4;
|
||||
if ($4 !== 4) {
|
||||
$ERROR('#4: $\\u0034 = 4; $4 === 4');
|
||||
}
|
||||
var $\u0035 = 5;
|
||||
if ($5 !== 5) {
|
||||
$ERROR('#5: $\\u0035 = 5; $5 === 5');
|
||||
}
|
||||
var $\u0036 = 6;
|
||||
if ($6 !== 6) {
|
||||
$ERROR('#6: $\\u0036 = 6; $6 === 6');
|
||||
}
|
||||
var $\u0037 = 7;
|
||||
if ($7 !== 7) {
|
||||
$ERROR('#7: $\\u0037 = 7; $7 === 7');
|
||||
}
|
||||
var $\u0038 = 8;
|
||||
if ($8 !== 8) {
|
||||
$ERROR('#8: $\\u0038 = 8; $8 === 8');
|
||||
}
|
||||
var $\u0039 = 9;
|
||||
if ($9 !== 9) {
|
||||
$ERROR('#9: $\\u0039 = 9; $9 === 9');
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Correct interpretation of DIGITS
|
||||
es6id: 11.6
|
||||
description: Identifier is $+ANY_DIGIT
|
||||
---*/
|
||||
|
||||
var $\u{30} = 0;
|
||||
assert.sameValue($0, 0);
|
||||
|
||||
var $\u{31} = 1;
|
||||
assert.sameValue($1, 1);
|
||||
|
||||
var $\u{32} = 2;
|
||||
assert.sameValue($2, 2);
|
||||
|
||||
var $\u{33} = 3;
|
||||
assert.sameValue($3, 3);
|
||||
|
||||
var $\u{34} = 4;
|
||||
assert.sameValue($4, 4);
|
||||
|
||||
var $\u{35} = 5;
|
||||
assert.sameValue($5, 5);
|
||||
|
||||
var $\u{36} = 6;
|
||||
assert.sameValue($6, 6);
|
||||
|
||||
var $\u{37} = 7;
|
||||
assert.sameValue($7, 7);
|
||||
|
||||
var $\u{38} = 8;
|
||||
assert.sameValue($8, 8);
|
||||
|
||||
var $\u{39} = 9;
|
||||
assert.sameValue($9, 9);
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Correct interpretation of DIGITS
|
||||
es5id: 7.6_A4.3_T1
|
||||
description: Identifier is $+ANY_DIGIT
|
||||
---*/
|
||||
|
||||
var $\u0030 = 0;
|
||||
assert.sameValue($0, 0);
|
||||
|
||||
var $\u0031 = 1;
|
||||
assert.sameValue($1, 1);
|
||||
|
||||
var $\u0032 = 2;
|
||||
assert.sameValue($2, 2);
|
||||
|
||||
var $\u0033 = 3;
|
||||
assert.sameValue($3, 3);
|
||||
|
||||
var $\u0034 = 4;
|
||||
assert.sameValue($4, 4);
|
||||
|
||||
var $\u0035 = 5;
|
||||
assert.sameValue($5, 5);
|
||||
|
||||
var $\u0036 = 6;
|
||||
assert.sameValue($6, 6);
|
||||
|
||||
var $\u0037 = 7;
|
||||
assert.sameValue($7, 7);
|
||||
|
||||
var $\u0038 = 8;
|
||||
assert.sameValue($8, 8);
|
||||
|
||||
var $\u0039 = 9;
|
||||
assert.sameValue($9, 9);
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: Correct interpretation of DIGITS
|
||||
es6id: 11.6
|
||||
description: Identifier is $+ANY_DIGIT
|
||||
---*/
|
||||
|
||||
var $0 = 0;
|
||||
assert.sameValue($0, 0);
|
||||
|
||||
var $1 = 1;
|
||||
assert.sameValue($1, 1);
|
||||
|
||||
var $2 = 2;
|
||||
assert.sameValue($2, 2);
|
||||
|
||||
var $3 = 3;
|
||||
assert.sameValue($3, 3);
|
||||
|
||||
var $4 = 4;
|
||||
assert.sameValue($4, 4);
|
||||
|
||||
var $5 = 5;
|
||||
assert.sameValue($5, 5);
|
||||
|
||||
var $6 = 6;
|
||||
assert.sameValue($6, 6);
|
||||
|
||||
var $7 = 7;
|
||||
assert.sameValue($7, 7);
|
||||
|
||||
var $8 = 8;
|
||||
assert.sameValue($8, 8);
|
||||
|
||||
var $9 = 9;
|
||||
assert.sameValue($9, 9);
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T2
|
||||
description: "IdentifierStart :: $"
|
||||
---*/
|
||||
|
||||
var $ = 1;
|
||||
assert.sameValue($, 1);
|
||||
|
||||
var $x = 2;
|
||||
assert.sameValue($x, 2);
|
||||
|
||||
var $$ = 3;
|
||||
assert.sameValue($$, 3);
|
||||
|
||||
var $_ = 4;
|
||||
assert.sameValue($_, 4);
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T4
|
||||
description: "IdentifierStart :: \\UnicodeEscapeSequence"
|
||||
---*/
|
||||
|
||||
var \u0078 = 1;
|
||||
assert.sameValue(x, 1);
|
||||
|
||||
var \u0078\u0078 = 2;
|
||||
assert.sameValue(xx, 2);
|
||||
|
||||
var \u0024 = 3;
|
||||
assert.sameValue($, 3);
|
||||
|
||||
var \u0024x = 4;
|
||||
assert.sameValue($x, 4);
|
||||
|
||||
var \u0024\u0024 = 5;
|
||||
assert.sameValue($$, 5);
|
||||
|
||||
var \u0024_ = 6;
|
||||
assert.sameValue($_, 6);
|
||||
|
||||
var \u005F = 7;
|
||||
assert.sameValue(_, 7);
|
||||
|
||||
var \u005Fx = 8;
|
||||
assert.sameValue(_x, 8);
|
||||
|
||||
var \u005F$ = 9;
|
||||
assert.sameValue(_$, 9);
|
||||
|
||||
var \u005F\u005F = 10;
|
||||
assert.sameValue(__, 10);
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T3
|
||||
description: "IdentifierStart :: _"
|
||||
---*/
|
||||
|
||||
var _ = 1;
|
||||
assert.sameValue(_, 1);
|
||||
|
||||
var _x = 2;
|
||||
assert.sameValue(_x, 2);
|
||||
|
||||
var _$ = 3;
|
||||
assert.sameValue(_$, 3);
|
||||
|
||||
var __ = 4;
|
||||
assert.sameValue(__, 4);
|
|
@ -0,0 +1,20 @@
|
|||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierPart :: IdentifierStart"
|
||||
es5id: 7.6_A2.1_T1
|
||||
description: "IdentifierStart :: UnicodeLetter"
|
||||
---*/
|
||||
|
||||
var x = 1;
|
||||
assert.sameValue(x, 1);
|
||||
|
||||
var xx = 2;
|
||||
assert.sameValue(xx, 2);
|
||||
|
||||
var x$ = 3;
|
||||
assert.sameValue(x$, 3);
|
||||
|
||||
var x_ = 4;
|
||||
assert.sameValue(x_, 4);
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: break
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{62}\u{72}\u{65}\u{61}\u{6b} = 123;;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-4
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: break (break)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0062\u0072\u0065\u0061\u006b = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0062\u0072\u0065\u0061\u006b = 123;;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var break = 123;;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: case
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{63}ase = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-5
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: case (case)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0063ase = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0063ase = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var case = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: catch
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{63}atch = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-13
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: catch (catch)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0063atch = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0063atch = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var catch = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: class
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var cla\u{73}s = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-30
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: class (class)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var cla\u0073s = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var cla\u0073s = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var class = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: const
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var co\u{6e}st = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-34
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: const (const)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var co\u006est = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var co\u006est = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var const = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: continue
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{63}ontinue = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-17
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: continue (continue)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0063ontinue = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0063ontinue = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var continue = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: debugger
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{64}ebugger = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-21
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: debugger (debugger)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0064ebugger = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0064ebugger = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var debugger = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: default
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var def\u{61}ult = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-26
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: default (default)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var def\u0061ult = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var def\u0061ult = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var default = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: delete
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{64}elete = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-29
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: delete (delete)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0064elete = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0064elete = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var delete = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: do
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{64}\u{6f} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-8
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: do (do)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0064\u006f = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0064\u006f = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var do = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
info: "IdentifierStart :: $"
|
||||
es6id: 11.6
|
||||
description: The $ as unicode character \u{24}
|
||||
---*/
|
||||
|
||||
var \u{24} = 1;
|
||||
|
||||
assert.sameValue($, 1);
|
|
@ -7,8 +7,6 @@ es5id: 7.6_A1.2_T2
|
|||
description: The $ as unicode character \u0024
|
||||
---*/
|
||||
|
||||
//CHECK#1
|
||||
var \u0024 = 1;
|
||||
if ($ !== 1) {
|
||||
$ERROR('#1: var \\u0024 = 1; $ === 1. Actual: ' + ($));
|
||||
}
|
||||
|
||||
assert.sameValue($, 1);
|
|
@ -9,6 +9,5 @@ description: Create variable $
|
|||
|
||||
//CHECK#1
|
||||
var $ = 1;
|
||||
if ($ !== 1) {
|
||||
$ERROR('#1: var $ = 1; $ === 1. Actual: ' + ($));
|
||||
}
|
||||
|
||||
assert.sameValue($, 1);
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: else (else)
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{65}lse = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-9
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: else (else) (null)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0065lse = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0065lse = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var else = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: enum
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{65}\u{6e}\u{75}\u{6d} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-32
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: enum (enum)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0065\u006e\u0075\u006d = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0065\u006e\u0075\u006d = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var enum = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: export
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var expor\u{74} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-35
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: export (export)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var expor\u0074 = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var expor\u0074 = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var export = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: extends
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var extend\u{73} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-31
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: extends (extends)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var extend\u0073 = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var extend\u0073 = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var extends = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: false
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var fals\u{65} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-3
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: false (false)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var fals\u0065 = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var fals\u0065 = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var false = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: finally
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var fina\u{6c}ly = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-14
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: finally (finally)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var fina\u006cly = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var fina\u006cly = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var finally = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: for
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var f\u{6f}r = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-18
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: for (for)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var f\u006fr = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var f\u006fr = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var for = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: function
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var func\u{74}ion = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-22
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: function (function)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var func\u0074ion = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var func\u0074ion = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var function = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: if
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{69}\u{66} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-24
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: if (if)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0069\u0066 = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0069\u0066 = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var if = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: import
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{69}\u{6d}\u{70}\u{6f}\u{72}\u{74} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-36
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: import (import)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0069\u006d\u0070\u006f\u0072\u0074 = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0069\u006d\u0070\u006f\u0072\u0074 = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var import = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: in
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{69}\u{6e} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-28
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: in (in)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0069\u006e = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0069\u006e = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var in = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: instanceof
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var insta\u{6e}ceof = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-6
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: instanceof (instanceof)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var insta\u006eceof = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var insta\u006eceof = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var instanceof = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: new
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var n\u{65}w = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-10
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: new (new)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var n\u0065w = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var n\u0065w = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var new = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: null
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{6e}ull = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-1
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: null (null)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u006eull = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u006eull = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var null = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: return
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var retur\u{6e} = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-15
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: return (return)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var retur\u006e = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var retur\u006e = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var return = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: super
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var \u{73}uper = 123;
|
|
@ -9,15 +9,7 @@ es5id: 7.6-33
|
|||
description: >
|
||||
7.6 - SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: super (super)
|
||||
includes: [runTestCase.js]
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
function testcase() {
|
||||
try {
|
||||
eval("var \u0073uper = 123;");
|
||||
return false;
|
||||
} catch (e) {
|
||||
return e instanceof SyntaxError;
|
||||
}
|
||||
}
|
||||
runTestCase(testcase);
|
||||
var \u0073uper = 123;
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var super = 123;
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
es6id: 11.6
|
||||
description: >
|
||||
SyntaxError expected: reserved words used as Identifier
|
||||
Names in UTF8: switch
|
||||
negative: SyntaxError
|
||||
---*/
|
||||
|
||||
var switc\u{68} = 123;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue