Created
January 16, 2017 05:01
-
-
Save vjeux/026ab949dc8379ad61e8796fc5f24a4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: ../test262/test//built-ins/Function/prototype/toString/getter-class-static.js | |
=================================================================== | |
--- ../test262/test//built-ins/Function/prototype/toString/getter-class-static.js | |
+++ ../test262/test//built-ins/Function/prototype/toString/getter-class-static.js | |
@@ -9,5 +9,6 @@ | |
let f = Object.getOwnPropertyDescriptor( | |
class { | |
- static get /* before */ | |
+ static get; | |
+ /* before */ | |
/* a */ | |
f /* b */ /* c */() /* d */ | |
Index: ../test262/test//built-ins/Function/prototype/toString/getter-class.js | |
=================================================================== | |
--- ../test262/test//built-ins/Function/prototype/toString/getter-class.js | |
+++ ../test262/test//built-ins/Function/prototype/toString/getter-class.js | |
@@ -10,5 +10,6 @@ | |
class { | |
/* before */ | |
- get /* a */ | |
+ get; | |
+ /* a */ | |
f /* b */ /* c */() /* d */ | |
{} /* after */ | |
Index: ../test262/test//built-ins/Function/prototype/toString/setter-class.js | |
=================================================================== | |
--- ../test262/test//built-ins/Function/prototype/toString/setter-class.js | |
+++ ../test262/test//built-ins/Function/prototype/toString/setter-class.js | |
@@ -10,5 +10,6 @@ | |
class { | |
/* before */ | |
- set /* a */ | |
+ set; | |
+ /* a */ | |
f /* b */( | |
/* c */ | |
Index: ../test262/test//built-ins/Function/prototype/toString/setter-class-static.js | |
=================================================================== | |
--- ../test262/test//built-ins/Function/prototype/toString/setter-class-static.js | |
+++ ../test262/test//built-ins/Function/prototype/toString/setter-class-static.js | |
@@ -9,5 +9,6 @@ | |
let f = Object.getOwnPropertyDescriptor( | |
class { | |
- static set /* before */ | |
+ static set; | |
+ /* before */ | |
/* a */ | |
f /* b */( | |
Index: ../test262/test//built-ins/Object/defineProperty/15.2.3.6-4-596.js | |
=================================================================== | |
--- ../test262/test//built-ins/Object/defineProperty/15.2.3.6-4-596.js | |
+++ ../test262/test//built-ins/Object/defineProperty/15.2.3.6-4-596.js | |
@@ -26,3 +26,2 @@ | |
verifyNotWritable(obj, "prop", "nocheck"); | |
assert.sameValue(obj.prop, "data"); | |
- | |
Index: ../test262/test//built-ins/Object/S15.2.1.1_A2_T9.js | |
=================================================================== | |
--- ../test262/test//built-ins/Object/S15.2.1.1_A2_T9.js | |
+++ ../test262/test//built-ins/Object/S15.2.1.1_A2_T9.js | |
@@ -27,3 +27,2 @@ | |
return 1; | |
} | |
- | |
Index: ../test262/test//built-ins/Object/S15.2.2.1_A2_T6.js | |
=================================================================== | |
--- ../test262/test//built-ins/Object/S15.2.2.1_A2_T6.js | |
+++ ../test262/test//built-ins/Object/S15.2.2.1_A2_T6.js | |
@@ -29,3 +29,2 @@ | |
return 1; | |
} | |
- | |
Index: ../test262/test//built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js | |
=================================================================== | |
--- ../test262/test//built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js | |
+++ ../test262/test//built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js | |
@@ -22,3 +22,2 @@ | |
function __string() {} | |
- | |
Index: ../test262/test//built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js | |
=================================================================== | |
--- ../test262/test//built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js | |
+++ ../test262/test//built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js | |
@@ -28,3 +28,2 @@ | |
function __instance() {} | |
- | |
Index: ../test262/test//built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js | |
=================================================================== | |
--- ../test262/test//built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js | |
+++ ../test262/test//built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js | |
@@ -19,3 +19,2 @@ | |
function __string() {} | |
- | |
Index: ../test262/test//built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js | |
=================================================================== | |
--- ../test262/test//built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js | |
+++ ../test262/test//built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js | |
@@ -28,3 +28,2 @@ | |
function __instance() {} | |
- | |
Index: ../test262/test//built-ins/String/prototype/match/S15.5.4.10_A1_T3.js | |
=================================================================== | |
--- ../test262/test//built-ins/String/prototype/match/S15.5.4.10_A1_T3.js | |
+++ ../test262/test//built-ins/String/prototype/match/S15.5.4.10_A1_T3.js | |
@@ -17,6 +17,6 @@ | |
//CHECK#1 | |
if (//Ensure we could overwrite global obj's toString | |
- this.toString === | |
- Object.prototype.toString && match(eval('"bj"'))[0] !== "bj") { | |
+ this.toString === Object.prototype.toString && | |
+ match(eval('"bj"'))[0] !== "bj") { | |
$ERROR( | |
'#1: match = String.prototype.match.bind(this); match(eval("\\"bj\\""))[0] === "bj". Actual: ' + | |
Index: ../test262/test//built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js | |
=================================================================== | |
--- ../test262/test//built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js | |
+++ ../test262/test//built-ins/String/prototype/replace/S15.5.4.11_A1_T9.js | |
@@ -27,3 +27,2 @@ | |
return a1 + a2 + a3; | |
} | |
- | |
Index: ../test262/test//built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js | |
=================================================================== | |
--- ../test262/test//built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js | |
+++ ../test262/test//built-ins/String/prototype/slice/S15.5.4.13_A1_T5.js | |
@@ -31,3 +31,2 @@ | |
////////////////////////////////////////////////////////////////////////////// | |
function __func() {} | |
- | |
Index: ../test262/test//built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js | |
=================================================================== | |
--- ../test262/test//built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js | |
+++ ../test262/test//built-ins/String/prototype/substring/S15.5.4.15_A1_T5.js | |
@@ -27,3 +27,2 @@ | |
////////////////////////////////////////////////////////////////////////////// | |
function __func() {} | |
- | |
Index: ../test262/test//built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js | |
=================================================================== | |
--- ../test262/test//built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js | |
+++ ../test262/test//built-ins/String/prototype/toLowerCase/S15.5.4.16_A7.js | |
@@ -23,3 +23,2 @@ | |
} | |
} | |
- | |
../test262/test//built-ins/String/S9.8.1_A3.js | |
12 | if (String(-1234567890) !== "-1234567890") { | |
13 | $ERROR( | |
14 | '#1: String(-1234567890) === "-1234567890". Actual: ' + String(-1234567890) | |
15 | ); | |
16 | } | |
17 | | |
18 | // CHECK#2 | |
19 | if ("-" + String(--1234567890) !== "-1234567890") { | |
20 | $ERROR( | |
21 | '#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + | |
22 | ("-" + String(--1234567890)) | |
23 | ); | |
24 | } | |
25 | | |
SyntaxError: Invalid left-hand side in prefix operation (20:19) | |
../test262/test//language/asi/S7.9_A5.9_T1.js | |
25 | ////////////////////////////////////////////////////////////////////////////// | |
26 | //CHECK#2 | |
27 | if (z !== 2 && y !== 1 && x !== 1) { | |
28 | $ERROR(""); | |
29 | } | |
30 | // | |
31 | ////////////////////////////////////////////////////////////////////////////// | |
32 | z = x + +++y; | |
33 | | |
34 | ////////////////////////////////////////////////////////////////////////////// | |
35 | //CHECK#3 | |
36 | if (z !== 2 && y !== 1 && x !== 1) { | |
37 | $ERROR(""); | |
38 | } | |
39 | // | |
40 | ////////////////////////////////////////////////////////////////////////////// | |
SyntaxError: Invalid left-hand side in prefix operation (33:10) | |
Index: ../test262/test//language/directive-prologue/14.1-4-s.js | |
=================================================================== | |
--- ../test262/test//language/directive-prologue/14.1-4-s.js | |
+++ ../test262/test//language/directive-prologue/14.1-4-s.js | |
@@ -11,5 +11,5 @@ | |
function foo() { | |
- "use str\\\nict"; | |
+ "use str\\\\\\nict"; | |
return this !== undefined; | |
} | |
Index: ../test262/test//language/directive-prologue/14.1-5-s.js | |
=================================================================== | |
--- ../test262/test//language/directive-prologue/14.1-5-s.js | |
+++ ../test262/test//language/directive-prologue/14.1-5-s.js | |
@@ -11,5 +11,5 @@ | |
function foo() { | |
- "use\\u0020strict"; | |
+ "use\\\\u0020strict"; | |
return this !== undefined; | |
} | |
Index: ../test262/test//language/directive-prologue/14.1-6-s.js | |
=================================================================== | |
--- ../test262/test//language/directive-prologue/14.1-6-s.js | |
+++ ../test262/test//language/directive-prologue/14.1-6-s.js | |
@@ -11,5 +11,5 @@ | |
function foo() { | |
- "use\tstrict"; | |
+ "use\\tstrict"; | |
return this !== undefined; | |
} | |
../test262/test//language/expressions/addition/S9.3_A4.2_T2.js | |
13 | | |
14 | // CHECK#1 | |
15 | if (isNaN(+Number.NaN) !== true) { | |
16 | $ERROR("#1: +(NaN) === Not-a-Number. Actual: " + +NaN); | |
17 | } | |
18 | | |
19 | // CHECK#2 | |
20 | if (++0 !== +0) { | |
21 | $ERROR("#2.1: +(+0) === 0. Actual: " + ++0); | |
22 | } else { | |
23 | if (1 / ++0 !== Number.POSITIVE_INFINITY) { | |
24 | $ERROR("#2.2: +(+0) === +0. Actual: -0"); | |
25 | } | |
26 | } | |
27 | | |
28 | // CHECK#3 | |
SyntaxError: Invalid left-hand side in prefix operation (21:6) | |
../test262/test//language/expressions/arrow-function/params-trailing-comma-length.js | |
4 | Check that trailing commas don't affect the .length property of arrow | |
5 | functions. | |
6 | info: http://jeffmo.github.io/es-trailing-function-commas/ | |
7 | author: Jeff Morrison <lbljeffmo@gmail.com> | |
8 | ---*/ | |
9 | | |
10 | assert.sameValue( | |
11 | a => {}.length, | |
12 | 1, | |
13 | "Arrow function with 1 arg + trailing comma reports incorrect .length!" | |
14 | ); | |
15 | | |
16 | assert.sameValue( | |
17 | (a, b) => {}.length, | |
18 | 2, | |
19 | "Arrow function with 2 args + trailing comma reports incorrect .length!" | |
SyntaxError: Unexpected token, expected , (12:9) | |
../test262/test//language/expressions/arrow-function/prototype-rules.js | |
2 | /*--- | |
3 | es6id: 14.2 | |
4 | description: > | |
5 | Arrow functions are like functions, except they throw when using the | |
6 | "new" operator on them. | |
7 | ---*/ | |
8 | | |
9 | assert.sameValue(typeof () => {}, "function"); | |
10 | assert.sameValue(Object.getPrototypeOf(() => {}), Function.prototype); | |
11 | assert.sameValue("prototype" in (() => {}), false); | |
12 | | |
SyntaxError: Unexpected token (10:25) | |
../test262/test//language/expressions/arrow-function/throw-new.js | |
7 | ... | |
8 | 8. If IsConstructor (constructor) is false, throw a TypeError exception. | |
9 | ... | |
10 | | |
11 | ---*/ | |
12 | | |
13 | assert.throws(TypeError, function() { | |
14 | new () => {}(); | |
15 | }); | |
16 | | |
SyntaxError: Unexpected token (15:7) | |
Index: ../test262/test//language/expressions/delete/S8.12.7_A1.js | |
=================================================================== | |
--- ../test262/test//language/expressions/delete/S8.12.7_A1.js | |
+++ ../test262/test//language/expressions/delete/S8.12.7_A1.js | |
@@ -24,3 +24,2 @@ | |
$ERROR("#2: delete Math.E; Math.E !== undefined"); | |
} | |
- | |
Index: ../test262/test//language/expressions/delete/S8.12.7_A2_T1.js | |
=================================================================== | |
--- ../test262/test//language/expressions/delete/S8.12.7_A2_T1.js | |
+++ ../test262/test//language/expressions/delete/S8.12.7_A2_T1.js | |
@@ -43,3 +43,2 @@ | |
); | |
} | |
- | |
Index: ../test262/test//language/expressions/object/method-definition/yield-as-generator-method-binding-identifier.js | |
=================================================================== | |
--- ../test262/test//language/expressions/object/method-definition/yield-as-generator-method-binding-identifier.js | |
+++ ../test262/test//language/expressions/object/method-definition/yield-as-generator-method-binding-identifier.js | |
@@ -31,3 +31,2 @@ | |
assert.sameValue(result.value, undefined, "Third result `value`"); | |
assert.sameValue(result.done, true, "Third result `done` flag"); | |
- | |
../test262/test//language/expressions/object/scope-gen-meth-param-elem-var-open.js | |
17 | flags: [noStrict] | |
18 | ---*/ | |
19 | | |
20 | var x = "outside"; | |
21 | var probe1, probe2; | |
22 | | |
23 | { | |
24 | *m( | |
25 | _ = probe1 = function() { | |
26 | return x; | |
27 | }, | |
28 | __ = (eval('var x = "inside";'), probe2 = function() { | |
29 | return x; | |
30 | }) | |
31 | ) {} | |
32 | }.m().next(); | |
SyntaxError: Unexpected token (25:2) | |
../test262/test//language/expressions/object/scope-gen-meth-paramsbody-var-close.js | |
19 | ---*/ | |
20 | | |
21 | var probe; | |
22 | | |
23 | { | |
24 | // A parameter expression is necessary to trigger the creation of the scope | |
25 | // under test. | |
26 | *m(_ = null) { | |
27 | var x = "inside"; | |
28 | probe = function() { | |
29 | return x; | |
30 | }; | |
31 | } | |
32 | }.m().next(); | |
33 | | |
34 | var x = "outside"; | |
SyntaxError: Unexpected token (27:2) | |
../test262/test//language/expressions/object/scope-gen-meth-paramsbody-var-open.js | |
19 | [...] | |
20 | ---*/ | |
21 | | |
22 | var x = "outside"; | |
23 | var probeParams, probeBody; | |
24 | | |
25 | { | |
26 | *m( | |
27 | _ = probeParams = function() { | |
28 | return x; | |
29 | } | |
30 | ) { | |
31 | var x = "inside"; | |
32 | probeBody = function() { | |
33 | return x; | |
34 | }; | |
SyntaxError: Unexpected token (27:2) | |
../test262/test//language/expressions/object/scope-gen-meth-param-elem-var-close.js | |
16 | flags: [noStrict] | |
17 | ---*/ | |
18 | | |
19 | var x = "outside"; | |
20 | var probe1, probe2, probeBody; | |
21 | | |
22 | { | |
23 | *m( | |
24 | _ = (eval('var x = "inside";'), probe1 = function() { | |
25 | return x; | |
26 | }), | |
27 | __ = probe2 = function() { | |
28 | return x; | |
29 | } | |
30 | ) { | |
31 | probeBody = function() { | |
SyntaxError: Unexpected token (24:2) | |
../test262/test//language/expressions/object/scope-setter-paramsbody-var-close.js | |
19 | ---*/ | |
20 | | |
21 | var probe; | |
22 | | |
23 | { | |
24 | // A parameter expression is necessary to trigger the creation of the scope | |
25 | // under test. | |
26 | set a(_ = null) { | |
27 | var x = "inside"; | |
28 | probe = function() { | |
29 | return x; | |
30 | }; | |
31 | } | |
32 | }.a = null; | |
33 | | |
34 | var x = "outside"; | |
SyntaxError: Unexpected token, expected ; (27:6) | |
../test262/test//language/expressions/object/scope-setter-paramsbody-var-open.js | |
19 | [...] | |
20 | ---*/ | |
21 | | |
22 | var x = "outside"; | |
23 | var probeParams, probeBody; | |
24 | | |
25 | { | |
26 | set a( | |
27 | _ = probeParams = function() { | |
28 | return x; | |
29 | } | |
30 | ) { | |
31 | var x = "inside"; | |
32 | probeBody = function() { | |
33 | return x; | |
34 | }; | |
SyntaxError: Unexpected token, expected ; (27:6) | |
../test262/test//language/expressions/tagged-template/call-expression-argument-list-evaluation.js | |
14 | var object = {}; | |
15 | function fn() { | |
16 | return "result"; | |
17 | } | |
18 | var calls; | |
19 | | |
20 | calls = 0; | |
21 | function() { | |
22 | return function() { | |
23 | calls++; | |
24 | assert.sameValue( | |
25 | arguments.length, | |
26 | 1, | |
27 | "NoSubstitutionTemplate arguments length" | |
28 | ); | |
29 | }; | |
SyntaxError: Unexpected token (22:8) | |
../test262/test//language/expressions/tagged-template/member-expression-argument-list-evaluation.js | |
14 | var object = {}; | |
15 | function fn() { | |
16 | return "result"; | |
17 | } | |
18 | var calls; | |
19 | | |
20 | calls = 0; | |
21 | function() { | |
22 | calls++; | |
23 | assert.sameValue( | |
24 | arguments.length, | |
25 | 1, | |
26 | "NoSubstitutionTemplate arguments length" | |
27 | ); | |
28 | }`NoSubstitutionTemplate`; | |
29 | assert.sameValue(calls, 1, "NoSubstitutionTemplate function invocation"); | |
SyntaxError: Unexpected token (22:8) | |
../test262/test//language/expressions/tagged-template/template-object-frozen-non-strict.js | |
6 | The first argument to a tagged template should be frozen and define a `raw` | |
7 | property that is also frozen. | |
8 | flags: [noStrict] | |
9 | ---*/ | |
10 | | |
11 | var templateObject = null; | |
12 | var threwError = false; | |
13 | function(parameter) { | |
14 | templateObject = parameter; | |
15 | }``; | |
16 | | |
17 | assert(templateObject !== null); | |
18 | templateObject.test262Prop = true; | |
19 | | |
20 | assert.sameValue( | |
21 | templateObject.test262Prop, | |
SyntaxError: Unexpected token (14:8) | |
../test262/test//language/expressions/tagged-template/template-object-frozen-strict.js | |
6 | The first argument to a tagged template should be frozen and define a `raw` | |
7 | property that is also frozen. | |
8 | flags: [onlyStrict] | |
9 | ---*/ | |
10 | | |
11 | var templateObject = null; | |
12 | var threwError = false; | |
13 | function(parameter) { | |
14 | templateObject = parameter; | |
15 | }``; | |
16 | | |
17 | assert(templateObject !== null); | |
18 | | |
19 | assert.throws(TypeError, function() { | |
20 | templateObject.test262Prop = true; | |
21 | }); | |
SyntaxError: Unexpected token (14:8) | |
../test262/test//language/expressions/tagged-template/template-object.js | |
5 | info: > | |
6 | The first argument to a tagged template should be a template object as | |
7 | defined by the GetTemplateObject abstract operation. | |
8 | includes: [propertyHelper.js] | |
9 | ---*/ | |
10 | var templateObject; | |
11 | | |
12 | function(parameter) { | |
13 | templateObject = parameter; | |
14 | }`${1}`; | |
15 | | |
16 | assert(Array.isArray(templateObject.raw), "The template object is an array"); | |
17 | | |
18 | assert(templateObject.hasOwnProperty("raw")); | |
19 | verifyNotEnumerable(templateObject, "raw"); | |
20 | verifyNotWritable(templateObject, "raw"); | |
SyntaxError: Unexpected token (13:8) | |
../test262/test//language/expressions/template-literal/tv-hex-escape-sequence.js | |
11 | consisting of code unit value 0x0075 followed by code unit value 0x007B | |
12 | followed by TRV of HexDigits followed by code unit value 0x007D. | |
13 | ---*/ | |
14 | | |
15 | var calls; | |
16 | | |
17 | calls = 0; | |
18 | function(s) { | |
19 | calls++; | |
20 | assert.sameValue(s[0], "A", "TV"); | |
21 | assert.sameValue(s.raw[0], "\\x41", "TRV"); | |
22 | }`\x41`; | |
23 | assert.sameValue(calls, 1); | |
24 | | |
SyntaxError: Unexpected token (19:8) | |
../test262/test//language/expressions/template-literal/tv-line-continuation.js | |
9 | consisting of the code unit value 0x005C followed by the code units of TRV | |
10 | of LineTerminatorSequence. | |
11 | ---*/ | |
12 | | |
13 | var calls; | |
14 | | |
15 | calls = 0; | |
16 | function(cs) { | |
17 | calls++; | |
18 | assert.sameValue(cs[0], "", "Line Feed and Carriage Return"); | |
19 | assert.sameValue(cs.raw[0], "\\\n\\\n\\\n", "Line Feed and Carriage Return"); | |
20 | }`\ | |
21 | \ | |
22 | \ | |
23 | `; | |
24 | assert.sameValue(calls, 1); | |
SyntaxError: Unexpected token (17:8) | |
../test262/test//language/expressions/template-literal/tv-line-terminator-sequence.js | |
12 | The TRV of LineTerminatorSequence :: <CR><LF> is the sequence consisting of | |
13 | the code unit value 0x000A. | |
14 | ---*/ | |
15 | | |
16 | var calls; | |
17 | | |
18 | calls = 0; | |
19 | function(s) { | |
20 | calls++; | |
21 | assert.sameValue(s[0], "\n\n\n", "Line Feed and Carriage Return"); | |
22 | assert.sameValue(s.raw[0], "\n\n\n", "Line Feed and Carriage Return"); | |
23 | }` | |
24 | | |
25 | | |
26 | `; | |
27 | assert.sameValue(calls, 1); | |
SyntaxError: Unexpected token (20:8) | |
../test262/test//language/expressions/template-literal/tv-character-escape-sequence.js | |
12 | the SingleEscapeCharacter. | |
13 | The TRV of CharacterEscapeSequence :: NonEscapeCharacter is the SV of the | |
14 | NonEscapeCharacter. | |
15 | ---*/ | |
16 | var calls; | |
17 | | |
18 | calls = 0; | |
19 | function(s) { | |
20 | calls++; | |
21 | assert.sameValue(s[0], "'", "TV of NonEscapeCharacter"); | |
22 | assert.sameValue(s.raw[0], "\\'", "TRV of NonEscapeCharacter"); | |
23 | }`\'`; | |
24 | assert.sameValue(calls, 1); | |
25 | | |
26 | calls = 0; | |
27 | function(s) { | |
SyntaxError: Unexpected token (20:8) | |
../test262/test//language/expressions/template-literal/tv-no-substitution.js | |
10 | The TRV of NoSubstitutionTemplate :: ` TemplateCharacters ` is the TRV of | |
11 | TemplateCharacters. | |
12 | ---*/ | |
13 | | |
14 | var calls; | |
15 | | |
16 | calls = 0; | |
17 | function(s) { | |
18 | calls++; | |
19 | assert.sameValue(s[0], "", "Template value (empty)"); | |
20 | assert.sameValue(s.raw[0], "", "Template raw value (empty)"); | |
21 | }``; | |
22 | assert.sameValue(calls, 1); | |
23 | | |
24 | calls = 0; | |
25 | function(s) { | |
SyntaxError: Unexpected token (18:8) | |
../test262/test//language/expressions/template-literal/tv-null-character-escape-sequence.js | |
6 | The TV of TemplateCharacter :: \ EscapeSequence is the SV of | |
7 | EscapeSequence. | |
8 | The TRV of EscapeSequence :: 0 is the code unit value 0x0030. | |
9 | ---*/ | |
10 | | |
11 | var calls = 0; | |
12 | | |
13 | function(s) { | |
14 | calls++; | |
15 | assert.sameValue(s[0], "\0"); | |
16 | assert.sameValue(s.raw[0], "\\0"); | |
17 | }`\0`; | |
18 | assert.sameValue(calls, 1); | |
19 | | |
SyntaxError: Unexpected token (14:8) | |
../test262/test//language/expressions/template-literal/tv-template-character.js | |
17 | SourceCharacter. | |
18 | The TRV of TemplateCharacter :: $ is the code unit value 0x0024. | |
19 | ---*/ | |
20 | | |
21 | var calls; | |
22 | | |
23 | calls = 0; | |
24 | function(s) { | |
25 | calls++; | |
26 | assert.sameValue(s[0], "a", "`a` character TV"); | |
27 | assert.sameValue(s.raw[0], "a", "`a` character TRV"); | |
28 | }`a`; | |
29 | assert.sameValue(calls, 1); | |
30 | | |
31 | calls = 0; | |
32 | function(s) { | |
SyntaxError: Unexpected token (25:8) | |
../test262/test//language/expressions/template-literal/tv-template-characters.js | |
9 | The TRV of TemplateCharacters :: TemplateCharacter TemplateCharacters is a | |
10 | sequence consisting of the code units in the TRV of TemplateCharacter | |
11 | followed by all the code units in the TRV of TemplateCharacters, in order. | |
12 | ---*/ | |
13 | | |
14 | var calls = 0; | |
15 | | |
16 | function(s) { | |
17 | calls++; | |
18 | assert.sameValue(s.raw[0], "test"); | |
19 | }`test`; | |
20 | | |
21 | assert.sameValue(calls, 1); | |
22 | assert.sameValue(`test`, "test"); | |
23 | | |
SyntaxError: Unexpected token (17:8) | |
../test262/test//language/expressions/template-literal/tv-template-head.js | |
9 | The TRV of TemplateHead :: ` TemplateCharacters ${ is the TRV of | |
10 | TemplateCharacters. | |
11 | ---*/ | |
12 | | |
13 | var calls; | |
14 | | |
15 | calls = 0; | |
16 | function(s) { | |
17 | calls++; | |
18 | assert.sameValue(s[0], "", "Template value (empty)"); | |
19 | assert.sameValue(s.raw[0], "", "Template raw value (empty)"); | |
20 | }`${1}`; | |
21 | assert.sameValue(calls, 1); | |
22 | | |
23 | calls = 0; | |
24 | function(s) { | |
SyntaxError: Unexpected token (17:8) | |
../test262/test//language/expressions/template-literal/tv-template-middle.js | |
7 | The TRV of TemplateMiddle :: } TemplateCharacters ${ is the TRV of | |
8 | TemplateCharacters. | |
9 | ---*/ | |
10 | | |
11 | var calls; | |
12 | | |
13 | calls = 0; | |
14 | function(s) { | |
15 | calls++; | |
16 | assert.sameValue(s[1], "", "Template value (empty)"); | |
17 | assert.sameValue(s.raw[1], "", "Template raw value (empty)"); | |
18 | }`${1}${2}`; | |
19 | assert.sameValue(calls, 1); | |
20 | | |
21 | calls = 0; | |
22 | function(s) { | |
SyntaxError: Unexpected token (15:8) | |
../test262/test//language/expressions/template-literal/tv-template-tail.js | |
9 | The TRV of TemplateTail :: } TemplateCharacters ` is the TRV of | |
10 | TemplateCharacters. | |
11 | ---*/ | |
12 | | |
13 | var calls; | |
14 | | |
15 | calls = 0; | |
16 | function(s) { | |
17 | calls++; | |
18 | assert.sameValue(s[1], "", "Template value (empty)"); | |
19 | assert.sameValue(s.raw[1], "", "Template raw value (empty)"); | |
20 | }`${1}`; | |
21 | assert.sameValue(calls, 1); | |
22 | | |
23 | calls = 0; | |
24 | function(s) { | |
SyntaxError: Unexpected token (17:8) | |
../test262/test//language/expressions/template-literal/tv-utf16-escape-sequence.js | |
13 | consisting of code unit value 0x0075 followed by code unit value 0x007B | |
14 | followed by TRV of HexDigits followed by code unit value 0x007D. | |
15 | ---*/ | |
16 | | |
17 | var calls; | |
18 | | |
19 | calls = 0; | |
20 | function(s) { | |
21 | calls++; | |
22 | assert.sameValue(s[0], "b", "u Hex4Digits template value"); | |
23 | assert.sameValue(s.raw[0], "\\u0062", "u Hex4Digits template raw value"); | |
24 | }`\u0062`; | |
25 | assert.sameValue(calls, 1); | |
26 | | |
27 | calls = 0; | |
28 | function(s) { | |
SyntaxError: Unexpected token (21:8) | |
../test262/test//language/expressions/template-literal/tv-zwnbsp.js | |
6 | The zero width no-break space format-control character may be used within | |
7 | template literals. | |
8 | ---*/ | |
9 | | |
10 | var callCount; | |
11 | | |
12 | callCount = 0; | |
13 | function(s) { | |
14 | callCount++; | |
15 | assert.sameValue( | |
16 | s[0], | |
17 | "\uFEFFtest", | |
18 | "TV (specified via unicode escape sequence)" | |
19 | ); | |
20 | assert.sameValue( | |
21 | s.raw[0], | |
SyntaxError: Unexpected token (14:8) | |
../test262/test//language/expressions/unary-minus/S11.4.7_A2.1_T1.js | |
8 | | |
9 | //CHECK#1 | |
10 | if (-1 !== -1) { | |
11 | $ERROR("#1: -1 === -1. Actual: " + -1); | |
12 | } | |
13 | | |
14 | //CHECK#2 | |
15 | if (--1 !== 1) { | |
16 | $ERROR("#2: -(-1) === -1. Actual: " + --1); | |
17 | } | |
18 | | |
19 | //CHECK#3 | |
20 | var x = -1; | |
21 | if (-x !== 1) { | |
22 | $ERROR("#3: var x = -1; -x === 1. Actual: " + -x); | |
23 | } | |
SyntaxError: Invalid left-hand side in prefix operation (16:6) | |
../test262/test//language/expressions/unary-plus/S11.4.6_A2.1_T1.js | |
8 | | |
9 | //CHECK#1 | |
10 | if (+1 !== 1) { | |
11 | $ERROR("#1: +1 === 1. Actual: " + +1); | |
12 | } | |
13 | | |
14 | //CHECK#2 | |
15 | if (++1 !== 1) { | |
16 | $ERROR("#2: +(+1) === -1. Actual: " + ++1); | |
17 | } | |
18 | | |
19 | //CHECK#3 | |
20 | var x = 1; | |
21 | if (+x !== 1) { | |
22 | $ERROR("#3: var x = +1; -x === 1. Actual: " + -x); | |
23 | } | |
SyntaxError: Invalid left-hand side in prefix operation (16:6) | |
../test262/test//language/identifiers/val-break-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: break (break) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var break = 123; | |
14 | | |
15 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-break-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: break | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var break = 123; | |
14 | | |
15 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-case-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: case | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var case = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-case-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: case (case) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var case = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-catch-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: catch (catch) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var catch = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-catch-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: catch | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var catch = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-class-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: class (class) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var class = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-class-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: class | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var class = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-const-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: const | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var const = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-const-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: const (const) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var const = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-continue-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: continue | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var continue = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-continue-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: continue (continue) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var continue = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-debugger-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: debugger (debugger) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var debugger = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-debugger-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: debugger | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var debugger = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-default-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: default | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var default = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-default-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: default (default) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var default = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-delete-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: delete (delete) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var delete = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-delete-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: delete | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var delete = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-do-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: do (do) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var do = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-do-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: do | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var do = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-else-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: else (else) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var else = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-else-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: else (else) (null) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var else = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-export-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: export | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var export = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-export-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: export (export) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var export = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-extends-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: extends (extends) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var extends = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-false-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: false | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var false = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-false-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: false (false) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var false = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-extends-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: extends | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var extends = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-finally-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: finally | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var finally = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-finally-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: finally (finally) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var finally = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-for-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: for | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var for = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-for-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: for (for) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var for = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-function-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: function | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var function = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-if-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: if | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var if = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-if-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: if (if) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var if = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-function-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: function (function) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var function = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-import-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: import | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var import = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-import-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: import (import) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var import = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-in-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: in | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var in = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-in-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: in (in) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var in = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-instanceof-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: instanceof | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var instanceof = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-new-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: new | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var new = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-new-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: new (new) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var new = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-instanceof-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: instanceof (instanceof) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var instanceof = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-null-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: null (null) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var null = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-return-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: return | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var return = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-return-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: return (return) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var return = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-null-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: null | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var null = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-super-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: super | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var super = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-super-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: super (super) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var super = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-this-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: this (this) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var this = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-this-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: this | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var this = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-switch-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: switch (switch) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var switch = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-switch-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: switch | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var switch = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-throw-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: throw | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var throw = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-throw-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: throw (throw) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var throw = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-true-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: true | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var true = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-true-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: true (true) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var true = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-try-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: try | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var try = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-try-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: try (try) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var try = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-typeof-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: typeof | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var typeof = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-typeof-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: typeof (typeof) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var typeof = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-var-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: var | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var var = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-var-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: var (var) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var var = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-void-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: void | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var void = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-void-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: void (void) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var void = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-while-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: while | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var while = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-while-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: while (while) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var while = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-with-via-escape-hex.js | |
6 | SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: with | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var with = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/identifiers/val-with-via-escape-hex4.js | |
6 | 7.6 - SyntaxError expected: reserved words used as Identifier | |
7 | Names in UTF8: with (with) | |
8 | negative: | |
9 | phase: early | |
10 | type: SyntaxError | |
11 | ---*/ | |
12 | | |
13 | var with = 123; | |
14 | | |
SyntaxError: Unexpected token (14:4) | |
../test262/test//language/module-code/eval-export-dflt-expr-err-eval.js | |
27 | phase: runtime | |
28 | type: Test262Error | |
29 | flags: [module] | |
30 | ---*/ | |
31 | | |
32 | export default function() { | |
33 | throw new Test262Error(); | |
34 | }() | |
35 | | |
SyntaxError: Unexpected token (35:2) | |
Index: ../test262/test//language/module-code/instn-named-bndng-dflt-fun-anon.js | |
=================================================================== | |
--- ../test262/test//language/module-code/instn-named-bndng-dflt-fun-anon.js | |
+++ ../test262/test//language/module-code/instn-named-bndng-dflt-fun-anon.js | |
@@ -51,3 +51,2 @@ | |
return 23; | |
} | |
- | |
Index: ../test262/test//language/module-code/instn-named-bndng-dflt-gen-named.js | |
=================================================================== | |
--- ../test262/test//language/module-code/instn-named-bndng-dflt-gen-named.js | |
+++ ../test262/test//language/module-code/instn-named-bndng-dflt-gen-named.js | |
@@ -53,3 +53,2 @@ | |
return 23; | |
} | |
- | |
Index: ../test262/test//language/module-code/instn-named-bndng-dflt-fun-named.js | |
=================================================================== | |
--- ../test262/test//language/module-code/instn-named-bndng-dflt-fun-named.js | |
+++ ../test262/test//language/module-code/instn-named-bndng-dflt-fun-named.js | |
@@ -51,3 +51,2 @@ | |
return 23; | |
} | |
- | |
Index: ../test262/test//language/module-code/instn-named-bndng-dflt-gen-anon.js | |
=================================================================== | |
--- ../test262/test//language/module-code/instn-named-bndng-dflt-gen-anon.js | |
+++ ../test262/test//language/module-code/instn-named-bndng-dflt-gen-anon.js | |
@@ -53,3 +53,2 @@ | |
return 23; | |
} | |
- | |
../test262/test//language/module-code/instn-resolve-empty-export.js | |
31 | negative: | |
32 | phase: early | |
33 | type: ReferenceError | |
34 | flags: [module] | |
35 | ---*/ | |
36 | | |
37 | export | |
38 | | |
SyntaxError: Unexpected token, expected { (39:0) | |
../test262/test//language/module-code/parse-export-empty.js | |
19 | { ExportsList , } | |
20 | | |
21 | NOTE: This form has no observable side effects. | |
22 | flags: [module] | |
23 | ---*/ | |
24 | | |
25 | export | |
26 | export | |
27 | export | |
28 | export | |
29 | export | |
30 | export | |
31 | export | |
32 | | |
SyntaxError: Unexpected token, expected { (27:0) | |
Index: ../test262/test//language/statements/for/S12.6.3_A5.js | |
=================================================================== | |
--- ../test262/test//language/statements/for/S12.6.3_A5.js | |
+++ ../test262/test//language/statements/for/S12.6.3_A5.js | |
@@ -21,5 +21,4 @@ | |
break; | |
} | |
- | |
} catch (e) { | |
$ERROR( | |
@@ -35,5 +34,4 @@ | |
break; | |
} | |
- | |
} catch (e) { | |
$ERROR( | |
@@ -49,5 +47,4 @@ | |
break; | |
} | |
- | |
} catch (e) { | |
$ERROR( | |
Index: ../test262/test//language/statements/for-in/S12.6.4_A2.js | |
=================================================================== | |
--- ../test262/test//language/statements/for-in/S12.6.4_A2.js | |
+++ ../test262/test//language/statements/for-in/S12.6.4_A2.js | |
@@ -14,5 +14,4 @@ | |
var key = __key; | |
} | |
- | |
} catch (e) { | |
$ERROR('#1: "for(__key in null){}" does not lead to throwing exception'); | |
Index: ../test262/test//language/statements/for-in/S12.6.4_A1.js | |
=================================================================== | |
--- ../test262/test//language/statements/for-in/S12.6.4_A1.js | |
+++ ../test262/test//language/statements/for-in/S12.6.4_A1.js | |
@@ -14,5 +14,4 @@ | |
var key = __key; | |
} | |
- | |
} catch (e) { | |
$ERROR('#1: "for(key in undefined){}" does not lead to throwing exception'); | |
Index: ../test262/test//language/statements/for-in/S12.6.4_A7_T1.js | |
=================================================================== | |
--- ../test262/test//language/statements/for-in/S12.6.4_A7_T1.js | |
+++ ../test262/test//language/statements/for-in/S12.6.4_A7_T1.js | |
@@ -47,5 +47,4 @@ | |
delete hash_map[key]; | |
} | |
- | |
} | |
} | |
Index: ../test262/test//language/statements/for-in/S12.6.4_A7_T2.js | |
=================================================================== | |
--- ../test262/test//language/statements/for-in/S12.6.4_A7_T2.js | |
+++ ../test262/test//language/statements/for-in/S12.6.4_A7_T2.js | |
@@ -47,5 +47,4 @@ | |
delete hash_map[key]; | |
} | |
- | |
} | |
} | |
Index: ../test262/test//language/statements/function/S13.2.2_A8_T1.js | |
=================================================================== | |
--- ../test262/test//language/statements/function/S13.2.2_A8_T1.js | |
+++ ../test262/test//language/statements/function/S13.2.2_A8_T1.js | |
@@ -27,5 +27,4 @@ | |
return ++arg; | |
} | |
- | |
}; | |
Index: ../test262/test//language/statements/function/S13_A6_T2.js | |
=================================================================== | |
--- ../test262/test//language/statements/function/S13_A6_T2.js | |
+++ ../test262/test//language/statements/function/S13_A6_T2.js | |
@@ -39,3 +39,2 @@ | |
return "SECOND"; | |
} | |
- | |
Index: ../test262/test//language/statements/function/S14_A2.js | |
=================================================================== | |
--- ../test262/test//language/statements/function/S14_A2.js | |
+++ ../test262/test//language/statements/function/S14_A2.js | |
@@ -23,3 +23,2 @@ | |
$ERROR("#2: FunctionDeclaration cannot be localed inside an Expression"); | |
} | |
- | |
Index: ../test262/test//language/statements/function/S14_A3.js | |
=================================================================== | |
--- ../test262/test//language/statements/function/S14_A3.js | |
+++ ../test262/test//language/statements/function/S14_A3.js | |
@@ -34,4 +34,3 @@ | |
return true; | |
} | |
- | |
} | |
Index: ../test262/test//language/statements/variable/S12.2_A5.js | |
=================================================================== | |
--- ../test262/test//language/statements/variable/S12.2_A5.js | |
+++ ../test262/test//language/statements/variable/S12.2_A5.js | |
@@ -30,3 +30,2 @@ | |
); | |
} | |
- | |
Index: ../test262/test//language/statements/variable/S12.2_A6_T1.js | |
=================================================================== | |
--- ../test262/test//language/statements/variable/S12.2_A6_T1.js | |
+++ ../test262/test//language/statements/variable/S12.2_A6_T1.js | |
@@ -33,3 +33,2 @@ | |
var incatch__var; | |
} | |
- | |
Index: ../test262/test//language/statements/variable/S12.2_A6_T2.js | |
=================================================================== | |
--- ../test262/test//language/statements/variable/S12.2_A6_T2.js | |
+++ ../test262/test//language/statements/variable/S12.2_A6_T2.js | |
@@ -34,3 +34,2 @@ | |
} | |
} | |
- | |
Index: ../test262/test//language/types/object/S8.6.1_A3.js | |
=================================================================== | |
--- ../test262/test//language/types/object/S8.6.1_A3.js | |
+++ ../test262/test//language/types/object/S8.6.1_A3.js | |
@@ -24,3 +24,2 @@ | |
$ERROR('#2: delete Number.NaN; typeof(Number.NaN) !== "undefined" '); | |
} | |
- | |
Index: ../test262/test//language/types/object/S8.6.2_A1.js | |
=================================================================== | |
--- ../test262/test//language/types/object/S8.6.2_A1.js | |
+++ ../test262/test//language/types/object/S8.6.2_A1.js | |
@@ -92,3 +92,2 @@ | |
); | |
} | |
- | |
Index: ../test262/test//language/types/reference/S8.7_A1.js | |
=================================================================== | |
--- ../test262/test//language/types/reference/S8.7_A1.js | |
+++ ../test262/test//language/types/reference/S8.7_A1.js | |
@@ -30,3 +30,2 @@ | |
); | |
} | |
- | |
Index: ../test262/test//language/types/reference/S8.7_A4.js | |
=================================================================== | |
--- ../test262/test//language/types/reference/S8.7_A4.js | |
+++ ../test262/test//language/types/reference/S8.7_A4.js | |
@@ -29,3 +29,2 @@ | |
); | |
} | |
- | |
Index: ../test262/test//language/types/reference/S8.7_A3.js | |
=================================================================== | |
--- ../test262/test//language/types/reference/S8.7_A3.js | |
+++ ../test262/test//language/types/reference/S8.7_A3.js | |
@@ -28,3 +28,2 @@ | |
); | |
} | |
- | |
Index: ../test262/test//language/types/reference/S8.7_A2.js | |
=================================================================== | |
--- ../test262/test//language/types/reference/S8.7_A2.js | |
+++ ../test262/test//language/types/reference/S8.7_A2.js | |
@@ -43,3 +43,2 @@ | |
); | |
} | |
- | |
Index: ../test262/test//language/types/string/S8.4_A10.js | |
=================================================================== | |
--- ../test262/test//language/types/string/S8.4_A10.js | |
+++ ../test262/test//language/types/string/S8.4_A10.js | |
@@ -41,3 +41,2 @@ | |
); | |
} | |
- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment