mirror of https://github.com/tc39/test262.git
Reformat negative ReferenceError tests
This commit is contained in:
parent
24e774251a
commit
d5a3a962b2
|
@ -11,7 +11,9 @@ info: >
|
|||
|
||||
es5id: 7.9_A5.7_T1
|
||||
description: Try use Variable1 \n ++ \n ++ \n Variable2 construction
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
var x=0, y=0;
|
||||
|
|
|
@ -8,7 +8,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 = 1;
|
||||
|
|
|
@ -18,7 +18,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -21,7 +21,9 @@ info: |
|
|||
|
||||
1. Return false.
|
||||
features: [generators]
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function* g() {
|
||||
|
|
|
@ -18,7 +18,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -6,7 +6,9 @@ author: Brian Terlson <brian.terlson@microsoft.com>
|
|||
esid: pending
|
||||
description: >
|
||||
Async function expressions are not a simple assignment target.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
(async function foo() { } = 1)
|
||||
|
|
|
@ -6,7 +6,9 @@ author: Brian Terlson <brian.terlson@microsoft.com>
|
|||
esid: pending
|
||||
description: >
|
||||
await is not a simple assignment target and cannot be assigned to.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
async function foo() {
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound addition assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 += 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound "bitwise and" assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 &= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound "bitwise or" assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 |= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound "bitwise xor" assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 ^= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound division assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 /= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound "left shift" assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 <<= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound "modular division" assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 %= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound multiplication assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 *= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound "right shift" assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 >>= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound subtraction assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 -= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.14.1
|
||||
description: Compound "unsigned right shift" assignment with non-simple target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1 >>>= 1;
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.4.1
|
||||
description: Applied to a non-simple assignment target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1--;
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -22,7 +22,9 @@ info: |
|
|||
|
||||
1. Return false.
|
||||
features: [generators]
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function* g() {
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
LeftHandSideExpression is false.
|
||||
es6id: 12.4.1
|
||||
description: Applied to a non-simple assignment target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1++;
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -22,7 +22,9 @@ info: |
|
|||
|
||||
1. Return false.
|
||||
features: [generators]
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function* g() {
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
UnaryExpression is false.
|
||||
es5id: 12.5.1
|
||||
description: Applied to a non-simple assignment target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
--1;
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -22,7 +22,9 @@ info: |
|
|||
|
||||
1. Return false.
|
||||
features: [generators]
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function* g() {
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -7,7 +7,9 @@ info: >
|
|||
UnaryExpression is false.
|
||||
es6id: 12.5.1
|
||||
description: Applied to a non-simple assignment target
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
++1;
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -22,7 +22,9 @@ info: |
|
|||
|
||||
1. Return false.
|
||||
features: [generators]
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function* g() {
|
||||
|
|
|
@ -19,7 +19,9 @@ info: |
|
|||
new.target
|
||||
|
||||
1. Return false.
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: The "this" is reserved word
|
||||
es5id: 11.1.1_A1
|
||||
description: Checking if execution of "this=1" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
this = 1;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: The "this" token can not be used as identifier
|
||||
es5id: 7.6.1.1_A1.18
|
||||
description: Checking if execution of "this=1" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
this = 1;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: The "null" token can not be used as identifier
|
||||
es5id: 7.6.1_A1.1
|
||||
description: Checking if execution of "null = 1" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
null = 1;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: The "true" token can not be used as identifier
|
||||
es5id: 7.6.1_A1.2
|
||||
description: Checking if execution of "true=1" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
true = 1;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: The "false" token can not be used as identifier
|
||||
es5id: 7.6.1_A1.3
|
||||
description: Checking if execution of "false=1" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
false = 1;
|
||||
|
|
|
@ -5,6 +5,8 @@ es6id: 13.1
|
|||
description: >
|
||||
const: global use before initialization in declaration statement.
|
||||
(TDZ, Temporal Dead Zone)
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: runtime
|
||||
type: ReferenceError
|
||||
---*/
|
||||
const x = x + 1;
|
||||
|
|
|
@ -5,6 +5,8 @@ es6id: 13.1
|
|||
description: >
|
||||
const: global use before initialization in prior statement.
|
||||
(TDZ, Temporal Dead Zone)
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: runtime
|
||||
type: ReferenceError
|
||||
---*/
|
||||
x; const x = 1;
|
||||
|
|
|
@ -5,6 +5,8 @@ es6id: 13.1
|
|||
description: >
|
||||
let: global use before initialization in declaration statement.
|
||||
(TDZ, Temporal Dead Zone)
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: runtime
|
||||
type: ReferenceError
|
||||
---*/
|
||||
let x = x + 1;
|
||||
|
|
|
@ -5,6 +5,8 @@ es6id: 13.1
|
|||
description: >
|
||||
let: global use before initialization in prior statement.
|
||||
(TDZ, Temporal Dead Zone)
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: runtime
|
||||
type: ReferenceError
|
||||
---*/
|
||||
x; let x;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: The true is reserved word
|
||||
es5id: 8.3_A2.1
|
||||
description: Checking if execution of "true=1" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
true = 1;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: The false is reserved word
|
||||
es5id: 8.3_A2.2
|
||||
description: Checking if execution of "false=0" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
false = 0;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: GetValue(V) mast fail
|
||||
es5id: 8.7.2_A1_T1
|
||||
description: Checking if execution of "'litera'=1;" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
'litera'=1;
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
info: GetValue(V) mast fail
|
||||
es5id: 8.7.2_A1_T2
|
||||
description: Checking if execution of "1=1" fails
|
||||
negative: ReferenceError
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
1=1;
|
||||
|
|
Loading…
Reference in New Issue