Generate tests

This commit is contained in:
Rick Waldron 2020-09-15 16:10:29 -04:00
parent 8b7adcdf00
commit 916cdb72e5
312 changed files with 7443 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/additiveexpression-minus-multiplicativeexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AdditiveExpression - MultiplicativeExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x - y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/additiveexpression-minus-multiplicativeexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AdditiveExpression - MultiplicativeExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 - 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/additiveexpression-minus-multiplicativeexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AdditiveExpression - MultiplicativeExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true - false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/additiveexpression-plus-multiplicativeexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AdditiveExpression + MultiplicativeExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x + y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/additiveexpression-plus-multiplicativeexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AdditiveExpression + MultiplicativeExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 + 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/additiveexpression-plus-multiplicativeexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AdditiveExpression + MultiplicativeExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true + false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
() => {} = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
() => ({}) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x => x) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-3.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
((x) => x) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-4.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(() => 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-5.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(() => true) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/arrowfunction-6.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(() => 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/asyncarrowfunction-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AsyncArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
async () => {} = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/asyncarrowfunction-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AsyncArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
async () => ({}) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/asyncarrowfunction-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AsyncArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(async x => x) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/asyncarrowfunction-3.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AsyncArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(async (x) => x) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/asyncarrowfunction-4.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AsyncArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(async () => 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/asyncarrowfunction-5.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AsyncArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(async () => true) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/asyncarrowfunction-6.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
AsyncArrowFunction
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(async () => 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseANDExpression: BitwiseANDExpression & EqualityExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x & y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseANDExpression: BitwiseANDExpression & EqualityExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 & 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseANDExpression: BitwiseANDExpression & EqualityExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true & false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x | y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 | 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true | false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x ^ y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 ^ 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true ^ false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/callexpression-arguments.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
CallExpression Arguments
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
f() = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/callexpression-templateliteral.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
CallExpression TemplateLiteral
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
f()`` = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x ?? y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 ?? 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true ?? false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression == RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x == y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression == RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 == 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression == RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true == false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression != RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x != y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression != RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 != 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression != RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true != false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression === RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x == y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression === RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 == 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression === RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true == false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression !== RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x !== y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression !== RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 !== 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
EqualityExpression !== RelationalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true !== false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/expression-comma-assignmentexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
Expression: Expression , AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x, y = z) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/expression-comma-assignmentexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
Expression: Expression , AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x, y = 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/expression-comma-assignmentexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
Expression: Expression , AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x, y = true) = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/identifierreference-arguments-strict.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return invalid. (Direct assignment)
flags: [generated, onlyStrict]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
arguments = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/identifierreference-eval-strict.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return invalid. (Direct assignment)
flags: [generated, onlyStrict]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
eval = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/import.meta.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
import.meta
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
import.meta = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/importcall.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated, module]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
ImportCall
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
import() = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: If LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral, the following Early Error rule is applied, It is a Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression = AssignmentExpression
If LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral, the following Early Error rule is applied, It is a Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
---*/
$DONOTEVALUATE();
function _() {
(x = y) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: If LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral, the following Early Error rule is applied, It is a Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression = AssignmentExpression
If LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral, the following Early Error rule is applied, It is a Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
---*/
$DONOTEVALUATE();
function _() {
(x = 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: If LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral, the following Early Error rule is applied, It is a Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression = AssignmentExpression
If LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral, the following Early Error rule is applied, It is a Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
---*/
$DONOTEVALUATE();
function _() {
(x = true) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression ??= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x ??= y) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression ??= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x ??= 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression ??= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x ??= true) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression &&= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x &&= y) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression &&= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x &&= 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression &&= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x &&= true) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression ||= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x ||= y) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression ||= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x ||= 1) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LeftHandSideExpression ||= AssignmentExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x ||= true) = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-minus-minus.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
UpdateExpression: LeftHandSideExpression--
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
---*/
$DONOTEVALUATE();
function _() {
x-- = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/lefthandsideexpression-plus-plus.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
UpdateExpression: LeftHandSideExpression ++
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
---*/
$DONOTEVALUATE();
function _() {
x++ = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LogicalANDExpression: LogicalANDExpression && BitwiseORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x && y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LogicalANDExpression: LogicalANDExpression && BitwiseORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 && 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LogicalANDExpression: LogicalANDExpression && BitwiseORExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true && false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LogicalORExpression: LogicalORExpression || LogicalANDExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x || y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LogicalORExpression: LogicalORExpression || LogicalANDExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 || 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
LogicalORExpression: LogicalORExpression || LogicalANDExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true || false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/memberexpression-templateliteral.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
MemberExpression TemplateLiteral
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
o.f()`` = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/minus-minus-unaryexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
UpdateExpression: --UnaryExpression
It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple.
---*/
$DONOTEVALUATE();
function _() {
--x = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x * y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 * 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true * false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x / y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 / 2 = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
true / false = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/new-memberexpression-arguments.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
new MemberExpression Arguments
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
new f() = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/new-newexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
new NewExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
new f = 1;
}

View File

@ -0,0 +1,24 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/optionalexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
features: [optional-chaining]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
OptionalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x?.y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/plus-plus-unaryexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
UpdateExpression: ++UnaryExpression
It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple.
---*/
$DONOTEVALUATE();
function _() {
++x = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-asyncfunctionexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression AsyncFunctionExpression; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
async function () {} = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-asyncgeneratorexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression AsyncGeneratorExpression; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
async function () {} = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-classexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression ClassExpression; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
class {} = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-functionexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression FunctionExpression, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
function() {} = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-generatorexpression.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression ArrayLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
function * () {} = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-literal-boolean.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression Literal BooleanLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
true = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-literal-null.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression Literal NullLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
null = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-literal-numeric.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression Literal NumericLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
0 = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-literal-string.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression Literal StringLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
'' = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-objectliteral.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression ObjectLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
{} = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-regularexpressionliteral.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression RegularExpressionLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
/1/ = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-templateliteral.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression TemplateLiteral; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
`` = 1;
}

View File

@ -0,0 +1,19 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/primaryexpression-this.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: PrimaryExpression this; Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
---*/
$DONOTEVALUATE();
function _() {
this = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/relationalexpression-greater-than-or-equal-to-shiftexpression-0.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
RelationalExpression >= ShiftExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
x >= y = 1;
}

View File

@ -0,0 +1,23 @@
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/relationalexpression-greater-than-or-equal-to-shiftexpression-1.case
// - src/assignment-target-type/invalid/direct.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (Direct assignment)
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Direct assignment
RelationalExpression >= ShiftExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
1 >= 2 = 1;
}

Some files were not shown because too many files have changed in this diff Show More