Reformat negative ReferenceError tests

This commit is contained in:
Mike Pennisi 2016-01-30 18:50:36 -05:00
parent 24e774251a
commit d5a3a962b2
47 changed files with 141 additions and 47 deletions

View File

@ -11,7 +11,9 @@ info: >
es5id: 7.9_A5.7_T1 es5id: 7.9_A5.7_T1
description: Try use Variable1 \n ++ \n ++ \n Variable2 construction description: Try use Variable1 \n ++ \n ++ \n Variable2 construction
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
var x=0, y=0; var x=0, y=0;

View File

@ -8,7 +8,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Assignment with non-simple target description: Assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 = 1; 1 = 1;

View File

@ -18,7 +18,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -21,7 +21,9 @@ info: |
1. Return false. 1. Return false.
features: [generators] features: [generators]
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function* g() { function* g() {

View File

@ -18,7 +18,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -6,7 +6,9 @@ author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending esid: pending
description: > description: >
Async function expressions are not a simple assignment target. Async function expressions are not a simple assignment target.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
(async function foo() { } = 1) (async function foo() { } = 1)

View File

@ -6,7 +6,9 @@ author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending esid: pending
description: > description: >
await is not a simple assignment target and cannot be assigned to. await is not a simple assignment target and cannot be assigned to.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
async function foo() { async function foo() {

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound addition assignment with non-simple target description: Compound addition assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 += 1; 1 += 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound "bitwise and" assignment with non-simple target description: Compound "bitwise and" assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 &= 1; 1 &= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound "bitwise or" assignment with non-simple target description: Compound "bitwise or" assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 |= 1; 1 |= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound "bitwise xor" assignment with non-simple target description: Compound "bitwise xor" assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 ^= 1; 1 ^= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound division assignment with non-simple target description: Compound division assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 /= 1; 1 /= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound "left shift" assignment with non-simple target description: Compound "left shift" assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 <<= 1; 1 <<= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound "modular division" assignment with non-simple target description: Compound "modular division" assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 %= 1; 1 %= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound multiplication assignment with non-simple target description: Compound multiplication assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 *= 1; 1 *= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound "right shift" assignment with non-simple target description: Compound "right shift" assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 >>= 1; 1 >>= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound subtraction assignment with non-simple target description: Compound subtraction assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 -= 1; 1 -= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.14.1 es6id: 12.14.1
description: Compound "unsigned right shift" assignment with non-simple target description: Compound "unsigned right shift" assignment with non-simple target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1 >>>= 1; 1 >>>= 1;

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.4.1 es6id: 12.4.1
description: Applied to a non-simple assignment target description: Applied to a non-simple assignment target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1--; 1--;

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -22,7 +22,9 @@ info: |
1. Return false. 1. Return false.
features: [generators] features: [generators]
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function* g() { function* g() {

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -7,7 +7,9 @@ info: >
LeftHandSideExpression is false. LeftHandSideExpression is false.
es6id: 12.4.1 es6id: 12.4.1
description: Applied to a non-simple assignment target description: Applied to a non-simple assignment target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1++; 1++;

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -22,7 +22,9 @@ info: |
1. Return false. 1. Return false.
features: [generators] features: [generators]
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function* g() { function* g() {

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -7,7 +7,9 @@ info: >
UnaryExpression is false. UnaryExpression is false.
es5id: 12.5.1 es5id: 12.5.1
description: Applied to a non-simple assignment target description: Applied to a non-simple assignment target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
--1; --1;

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -22,7 +22,9 @@ info: |
1. Return false. 1. Return false.
features: [generators] features: [generators]
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function* g() { function* g() {

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -7,7 +7,9 @@ info: >
UnaryExpression is false. UnaryExpression is false.
es6id: 12.5.1 es6id: 12.5.1
description: Applied to a non-simple assignment target description: Applied to a non-simple assignment target
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
++1; ++1;

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -22,7 +22,9 @@ info: |
1. Return false. 1. Return false.
features: [generators] features: [generators]
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function* g() { function* g() {

View File

@ -19,7 +19,9 @@ info: |
new.target new.target
1. Return false. 1. Return false.
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
function f() { function f() {

View File

@ -5,7 +5,9 @@
info: The "this" is reserved word info: The "this" is reserved word
es5id: 11.1.1_A1 es5id: 11.1.1_A1
description: Checking if execution of "this=1" fails description: Checking if execution of "this=1" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
this = 1; this = 1;

View File

@ -5,7 +5,9 @@
info: The "this" token can not be used as identifier info: The "this" token can not be used as identifier
es5id: 7.6.1.1_A1.18 es5id: 7.6.1.1_A1.18
description: Checking if execution of "this=1" fails description: Checking if execution of "this=1" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
this = 1; this = 1;

View File

@ -5,7 +5,9 @@
info: The "null" token can not be used as identifier info: The "null" token can not be used as identifier
es5id: 7.6.1_A1.1 es5id: 7.6.1_A1.1
description: Checking if execution of "null = 1" fails description: Checking if execution of "null = 1" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
null = 1; null = 1;

View File

@ -5,7 +5,9 @@
info: The "true" token can not be used as identifier info: The "true" token can not be used as identifier
es5id: 7.6.1_A1.2 es5id: 7.6.1_A1.2
description: Checking if execution of "true=1" fails description: Checking if execution of "true=1" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
true = 1; true = 1;

View File

@ -5,7 +5,9 @@
info: The "false" token can not be used as identifier info: The "false" token can not be used as identifier
es5id: 7.6.1_A1.3 es5id: 7.6.1_A1.3
description: Checking if execution of "false=1" fails description: Checking if execution of "false=1" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
false = 1; false = 1;

View File

@ -5,6 +5,8 @@ es6id: 13.1
description: > description: >
const: global use before initialization in declaration statement. const: global use before initialization in declaration statement.
(TDZ, Temporal Dead Zone) (TDZ, Temporal Dead Zone)
negative: ReferenceError negative:
phase: runtime
type: ReferenceError
---*/ ---*/
const x = x + 1; const x = x + 1;

View File

@ -5,6 +5,8 @@ es6id: 13.1
description: > description: >
const: global use before initialization in prior statement. const: global use before initialization in prior statement.
(TDZ, Temporal Dead Zone) (TDZ, Temporal Dead Zone)
negative: ReferenceError negative:
phase: runtime
type: ReferenceError
---*/ ---*/
x; const x = 1; x; const x = 1;

View File

@ -5,6 +5,8 @@ es6id: 13.1
description: > description: >
let: global use before initialization in declaration statement. let: global use before initialization in declaration statement.
(TDZ, Temporal Dead Zone) (TDZ, Temporal Dead Zone)
negative: ReferenceError negative:
phase: runtime
type: ReferenceError
---*/ ---*/
let x = x + 1; let x = x + 1;

View File

@ -5,6 +5,8 @@ es6id: 13.1
description: > description: >
let: global use before initialization in prior statement. let: global use before initialization in prior statement.
(TDZ, Temporal Dead Zone) (TDZ, Temporal Dead Zone)
negative: ReferenceError negative:
phase: runtime
type: ReferenceError
---*/ ---*/
x; let x; x; let x;

View File

@ -5,7 +5,9 @@
info: The true is reserved word info: The true is reserved word
es5id: 8.3_A2.1 es5id: 8.3_A2.1
description: Checking if execution of "true=1" fails description: Checking if execution of "true=1" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
true = 1; true = 1;

View File

@ -5,7 +5,9 @@
info: The false is reserved word info: The false is reserved word
es5id: 8.3_A2.2 es5id: 8.3_A2.2
description: Checking if execution of "false=0" fails description: Checking if execution of "false=0" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
false = 0; false = 0;

View File

@ -5,7 +5,9 @@
info: GetValue(V) mast fail info: GetValue(V) mast fail
es5id: 8.7.2_A1_T1 es5id: 8.7.2_A1_T1
description: Checking if execution of "'litera'=1;" fails description: Checking if execution of "'litera'=1;" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
'litera'=1; 'litera'=1;

View File

@ -5,7 +5,9 @@
info: GetValue(V) mast fail info: GetValue(V) mast fail
es5id: 8.7.2_A1_T2 es5id: 8.7.2_A1_T2
description: Checking if execution of "1=1" fails description: Checking if execution of "1=1" fails
negative: ReferenceError negative:
phase: early
type: ReferenceError
---*/ ---*/
1=1; 1=1;