From 916cdb72e55015a816089f5f2eb01f0611914214 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Tue, 15 Sep 2020 16:10:29 -0400 Subject: [PATCH] Generate tests --- ...ession-minus-multiplicativeexpression-0.js | 23 ++++++++++++++++ ...ession-minus-multiplicativeexpression-1.js | 23 ++++++++++++++++ ...ession-minus-multiplicativeexpression-2.js | 23 ++++++++++++++++ ...ression-plus-multiplicativeexpression-0.js | 23 ++++++++++++++++ ...ression-plus-multiplicativeexpression-1.js | 23 ++++++++++++++++ ...ression-plus-multiplicativeexpression-2.js | 23 ++++++++++++++++ .../direct-arrowfunction-0.js | 23 ++++++++++++++++ .../direct-arrowfunction-1.js | 23 ++++++++++++++++ .../direct-arrowfunction-2.js | 23 ++++++++++++++++ .../direct-arrowfunction-3.js | 23 ++++++++++++++++ .../direct-arrowfunction-4.js | 23 ++++++++++++++++ .../direct-arrowfunction-5.js | 23 ++++++++++++++++ .../direct-arrowfunction-6.js | 23 ++++++++++++++++ .../direct-asyncarrowfunction-0.js | 23 ++++++++++++++++ .../direct-asyncarrowfunction-1.js | 23 ++++++++++++++++ .../direct-asyncarrowfunction-2.js | 23 ++++++++++++++++ .../direct-asyncarrowfunction-3.js | 23 ++++++++++++++++ .../direct-asyncarrowfunction-4.js | 23 ++++++++++++++++ .../direct-asyncarrowfunction-5.js | 23 ++++++++++++++++ .../direct-asyncarrowfunction-6.js | 23 ++++++++++++++++ ...ession-bitwise-and-equalityexpression-0.js | 23 ++++++++++++++++ ...ession-bitwise-and-equalityexpression-1.js | 23 ++++++++++++++++ ...ession-bitwise-and-equalityexpression-2.js | 23 ++++++++++++++++ ...ssion-bitwise-or-bitwisexorexpression-0.js | 23 ++++++++++++++++ ...ssion-bitwise-or-bitwisexorexpression-1.js | 23 ++++++++++++++++ ...ssion-bitwise-or-bitwisexorexpression-2.js | 23 ++++++++++++++++ ...sion-bitwise-xor-bitwiseandexpression-0.js | 23 ++++++++++++++++ ...sion-bitwise-xor-bitwiseandexpression-1.js | 23 ++++++++++++++++ ...sion-bitwise-xor-bitwiseandexpression-2.js | 23 ++++++++++++++++ .../direct-callexpression-arguments.js | 23 ++++++++++++++++ .../direct-callexpression-templateliteral.js | 23 ++++++++++++++++ ...sionhead-coalesce-bitwiseorexpression-0.js | 23 ++++++++++++++++ ...sionhead-coalesce-bitwiseorexpression-1.js | 23 ++++++++++++++++ ...sionhead-coalesce-bitwiseorexpression-2.js | 23 ++++++++++++++++ ...n-abstract-equal-relationalexpression-0.js | 23 ++++++++++++++++ ...n-abstract-equal-relationalexpression-1.js | 23 ++++++++++++++++ ...n-abstract-equal-relationalexpression-2.js | 23 ++++++++++++++++ ...stract-not-equal-relationalexpression-0.js | 23 ++++++++++++++++ ...stract-not-equal-relationalexpression-1.js | 23 ++++++++++++++++ ...stract-not-equal-relationalexpression-2.js | 23 ++++++++++++++++ ...ion-strict-equal-relationalexpression-0.js | 23 ++++++++++++++++ ...ion-strict-equal-relationalexpression-1.js | 23 ++++++++++++++++ ...ion-strict-equal-relationalexpression-2.js | 23 ++++++++++++++++ ...strict-not-equal-relationalexpression-0.js | 23 ++++++++++++++++ ...strict-not-equal-relationalexpression-1.js | 23 ++++++++++++++++ ...strict-not-equal-relationalexpression-2.js | 23 ++++++++++++++++ ...expression-comma-assignmentexpression-0.js | 23 ++++++++++++++++ ...expression-comma-assignmentexpression-1.js | 23 ++++++++++++++++ ...expression-comma-assignmentexpression-2.js | 23 ++++++++++++++++ ...ct-identifierreference-arguments-strict.js | 19 +++++++++++++ .../direct-identifierreference-eval-strict.js | 19 +++++++++++++ .../direct-import.meta.js | 23 ++++++++++++++++ .../assignmenttargettype/direct-importcall.js | 23 ++++++++++++++++ ...ssion-assignment-assignmentexpression-0.js | 23 ++++++++++++++++ ...ssion-assignment-assignmentexpression-1.js | 23 ++++++++++++++++ ...ssion-assignment-assignmentexpression-2.js | 23 ++++++++++++++++ ...lesce-assignment-assignmentexpression-0.js | 23 ++++++++++++++++ ...lesce-assignment-assignmentexpression-1.js | 23 ++++++++++++++++ ...lesce-assignment-assignmentexpression-2.js | 23 ++++++++++++++++ ...l-and-assignment-assignmentexpression-0.js | 23 ++++++++++++++++ ...l-and-assignment-assignmentexpression-1.js | 23 ++++++++++++++++ ...l-and-assignment-assignmentexpression-2.js | 23 ++++++++++++++++ ...al-or-assignment-assignmentexpression-0.js | 23 ++++++++++++++++ ...al-or-assignment-assignmentexpression-1.js | 23 ++++++++++++++++ ...al-or-assignment-assignmentexpression-2.js | 23 ++++++++++++++++ ...rect-lefthandsideexpression-minus-minus.js | 23 ++++++++++++++++ ...direct-lefthandsideexpression-plus-plus.js | 23 ++++++++++++++++ ...ssion-logical-and-bitwiseorexpression-0.js | 23 ++++++++++++++++ ...ssion-logical-and-bitwiseorexpression-1.js | 23 ++++++++++++++++ ...ssion-logical-and-bitwiseorexpression-2.js | 23 ++++++++++++++++ ...ssion-logical-or-logicalandexpression-0.js | 23 ++++++++++++++++ ...ssion-logical-or-logicalandexpression-1.js | 23 ++++++++++++++++ ...ssion-logical-or-logicalandexpression-2.js | 23 ++++++++++++++++ ...direct-memberexpression-templateliteral.js | 23 ++++++++++++++++ .../direct-minus-minus-unaryexpression.js | 23 ++++++++++++++++ ...tiveoperator-exponentiationexpression-0.js | 23 ++++++++++++++++ ...tiveoperator-exponentiationexpression-1.js | 23 ++++++++++++++++ ...tiveoperator-exponentiationexpression-2.js | 23 ++++++++++++++++ ...tiveoperator-exponentiationexpression-3.js | 23 ++++++++++++++++ ...tiveoperator-exponentiationexpression-4.js | 23 ++++++++++++++++ ...tiveoperator-exponentiationexpression-5.js | 23 ++++++++++++++++ .../direct-new-memberexpression-arguments.js | 23 ++++++++++++++++ .../direct-new-newexpression.js | 23 ++++++++++++++++ .../direct-optionalexpression.js | 24 +++++++++++++++++ .../direct-plus-plus-unaryexpression.js | 23 ++++++++++++++++ ...imaryexpression-asyncfunctionexpression.js | 19 +++++++++++++ ...maryexpression-asyncgeneratorexpression.js | 19 +++++++++++++ ...irect-primaryexpression-classexpression.js | 19 +++++++++++++ ...ct-primaryexpression-functionexpression.js | 19 +++++++++++++ ...t-primaryexpression-generatorexpression.js | 19 +++++++++++++ ...irect-primaryexpression-literal-boolean.js | 19 +++++++++++++ .../direct-primaryexpression-literal-null.js | 19 +++++++++++++ ...irect-primaryexpression-literal-numeric.js | 19 +++++++++++++ ...direct-primaryexpression-literal-string.js | 19 +++++++++++++ .../direct-primaryexpression-objectliteral.js | 19 +++++++++++++ ...maryexpression-regularexpressionliteral.js | 19 +++++++++++++ ...irect-primaryexpression-templateliteral.js | 19 +++++++++++++ .../direct-primaryexpression-this.js | 19 +++++++++++++ ...ater-than-or-equal-to-shiftexpression-0.js | 23 ++++++++++++++++ ...ater-than-or-equal-to-shiftexpression-1.js | 23 ++++++++++++++++ ...ater-than-or-equal-to-shiftexpression-2.js | 23 ++++++++++++++++ ...pression-greater-than-shiftexpression-0.js | 23 ++++++++++++++++ ...pression-greater-than-shiftexpression-1.js | 23 ++++++++++++++++ ...pression-greater-than-shiftexpression-2.js | 23 ++++++++++++++++ ...lationalexpression-in-shiftexpression-0.js | 23 ++++++++++++++++ ...lationalexpression-in-shiftexpression-1.js | 23 ++++++++++++++++ ...lationalexpression-in-shiftexpression-2.js | 23 ++++++++++++++++ ...expression-instanceof-shiftexpression-0.js | 23 ++++++++++++++++ ...expression-instanceof-shiftexpression-1.js | 23 ++++++++++++++++ ...expression-instanceof-shiftexpression-2.js | 23 ++++++++++++++++ ...less-than-or-equal-to-shiftexpression-0.js | 23 ++++++++++++++++ ...less-than-or-equal-to-shiftexpression-1.js | 23 ++++++++++++++++ ...less-than-or-equal-to-shiftexpression-2.js | 23 ++++++++++++++++ ...lexpression-less-than-shiftexpression-0.js | 23 ++++++++++++++++ ...lexpression-less-than-shiftexpression-1.js | 23 ++++++++++++++++ ...lexpression-less-than-shiftexpression-2.js | 23 ++++++++++++++++ ...ssion-bitwise-left-additiveexpression-0.js | 23 ++++++++++++++++ ...ssion-bitwise-left-additiveexpression-1.js | 23 ++++++++++++++++ ...ssion-bitwise-left-additiveexpression-2.js | 23 ++++++++++++++++ ...sion-bitwise-right-additiveexpression-0.js | 23 ++++++++++++++++ ...sion-bitwise-right-additiveexpression-1.js | 23 ++++++++++++++++ ...sion-bitwise-right-additiveexpression-2.js | 23 ++++++++++++++++ ...gned-bitwise-right-additiveexpression-0.js | 23 ++++++++++++++++ ...gned-bitwise-right-additiveexpression-1.js | 23 ++++++++++++++++ ...gned-bitwise-right-additiveexpression-2.js | 23 ++++++++++++++++ ...texpression-else-assignmentexpression-0.js | 23 ++++++++++++++++ ...texpression-else-assignmentexpression-1.js | 23 ++++++++++++++++ ...texpression-else-assignmentexpression-2.js | 23 ++++++++++++++++ ...-unaryexpression-delete-unaryexpression.js | 23 ++++++++++++++++ ...xpression-exclamation-unaryexpression-0.js | 23 ++++++++++++++++ ...xpression-exclamation-unaryexpression-1.js | 23 ++++++++++++++++ ...xpression-exclamation-unaryexpression-2.js | 23 ++++++++++++++++ ...unaryexpression-minus-unaryexpression-0.js | 23 ++++++++++++++++ ...unaryexpression-minus-unaryexpression-1.js | 23 ++++++++++++++++ ...unaryexpression-minus-unaryexpression-2.js | 23 ++++++++++++++++ ...-unaryexpression-plus-unaryexpression-0.js | 23 ++++++++++++++++ ...-unaryexpression-plus-unaryexpression-1.js | 23 ++++++++++++++++ ...-unaryexpression-plus-unaryexpression-2.js | 23 ++++++++++++++++ ...unaryexpression-tilde-unaryexpression-0.js | 23 ++++++++++++++++ ...unaryexpression-tilde-unaryexpression-1.js | 23 ++++++++++++++++ ...unaryexpression-tilde-unaryexpression-2.js | 23 ++++++++++++++++ ...naryexpression-typeof-unaryexpression-0.js | 23 ++++++++++++++++ ...naryexpression-typeof-unaryexpression-1.js | 23 ++++++++++++++++ ...naryexpression-typeof-unaryexpression-2.js | 23 ++++++++++++++++ ...-unaryexpression-void-unaryexpression-0.js | 23 ++++++++++++++++ ...-unaryexpression-void-unaryexpression-1.js | 23 ++++++++++++++++ ...-unaryexpression-void-unaryexpression-2.js | 23 ++++++++++++++++ ...on-star-star-exponentiationexpression-0.js | 23 ++++++++++++++++ ...on-star-star-exponentiationexpression-1.js | 23 ++++++++++++++++ ...on-star-star-exponentiationexpression-2.js | 23 ++++++++++++++++ .../direct-yieldexpression-0.js | 23 ++++++++++++++++ .../direct-yieldexpression-1.js | 23 ++++++++++++++++ ...ession-minus-multiplicativeexpression-0.js | 26 ++++++++++++++++++ ...ession-minus-multiplicativeexpression-1.js | 26 ++++++++++++++++++ ...ession-minus-multiplicativeexpression-2.js | 26 ++++++++++++++++++ ...ression-plus-multiplicativeexpression-0.js | 26 ++++++++++++++++++ ...ression-plus-multiplicativeexpression-1.js | 26 ++++++++++++++++++ ...ression-plus-multiplicativeexpression-2.js | 26 ++++++++++++++++++ .../parenthesized-arrowfunction-0.js | 26 ++++++++++++++++++ .../parenthesized-arrowfunction-1.js | 26 ++++++++++++++++++ .../parenthesized-arrowfunction-2.js | 26 ++++++++++++++++++ .../parenthesized-arrowfunction-3.js | 26 ++++++++++++++++++ .../parenthesized-arrowfunction-4.js | 26 ++++++++++++++++++ .../parenthesized-arrowfunction-5.js | 26 ++++++++++++++++++ .../parenthesized-arrowfunction-6.js | 26 ++++++++++++++++++ .../parenthesized-asyncarrowfunction-0.js | 26 ++++++++++++++++++ .../parenthesized-asyncarrowfunction-1.js | 26 ++++++++++++++++++ .../parenthesized-asyncarrowfunction-2.js | 26 ++++++++++++++++++ .../parenthesized-asyncarrowfunction-3.js | 26 ++++++++++++++++++ .../parenthesized-asyncarrowfunction-4.js | 26 ++++++++++++++++++ .../parenthesized-asyncarrowfunction-5.js | 26 ++++++++++++++++++ .../parenthesized-asyncarrowfunction-6.js | 26 ++++++++++++++++++ ...ession-bitwise-and-equalityexpression-0.js | 26 ++++++++++++++++++ ...ession-bitwise-and-equalityexpression-1.js | 26 ++++++++++++++++++ ...ession-bitwise-and-equalityexpression-2.js | 26 ++++++++++++++++++ ...ssion-bitwise-or-bitwisexorexpression-0.js | 26 ++++++++++++++++++ ...ssion-bitwise-or-bitwisexorexpression-1.js | 26 ++++++++++++++++++ ...ssion-bitwise-or-bitwisexorexpression-2.js | 26 ++++++++++++++++++ ...sion-bitwise-xor-bitwiseandexpression-0.js | 26 ++++++++++++++++++ ...sion-bitwise-xor-bitwiseandexpression-1.js | 26 ++++++++++++++++++ ...sion-bitwise-xor-bitwiseandexpression-2.js | 26 ++++++++++++++++++ .../parenthesized-callexpression-arguments.js | 26 ++++++++++++++++++ ...thesized-callexpression-templateliteral.js | 26 ++++++++++++++++++ ...sionhead-coalesce-bitwiseorexpression-0.js | 26 ++++++++++++++++++ ...sionhead-coalesce-bitwiseorexpression-1.js | 26 ++++++++++++++++++ ...sionhead-coalesce-bitwiseorexpression-2.js | 26 ++++++++++++++++++ ...n-abstract-equal-relationalexpression-0.js | 26 ++++++++++++++++++ ...n-abstract-equal-relationalexpression-1.js | 26 ++++++++++++++++++ ...n-abstract-equal-relationalexpression-2.js | 26 ++++++++++++++++++ ...stract-not-equal-relationalexpression-0.js | 26 ++++++++++++++++++ ...stract-not-equal-relationalexpression-1.js | 26 ++++++++++++++++++ ...stract-not-equal-relationalexpression-2.js | 26 ++++++++++++++++++ ...ion-strict-equal-relationalexpression-0.js | 26 ++++++++++++++++++ ...ion-strict-equal-relationalexpression-1.js | 26 ++++++++++++++++++ ...ion-strict-equal-relationalexpression-2.js | 26 ++++++++++++++++++ ...strict-not-equal-relationalexpression-0.js | 26 ++++++++++++++++++ ...strict-not-equal-relationalexpression-1.js | 26 ++++++++++++++++++ ...strict-not-equal-relationalexpression-2.js | 26 ++++++++++++++++++ ...expression-comma-assignmentexpression-0.js | 26 ++++++++++++++++++ ...expression-comma-assignmentexpression-1.js | 26 ++++++++++++++++++ ...expression-comma-assignmentexpression-2.js | 26 ++++++++++++++++++ ...ed-identifierreference-arguments-strict.js | 22 +++++++++++++++ ...hesized-identifierreference-eval-strict.js | 22 +++++++++++++++ .../parenthesized-import.meta.js | 26 ++++++++++++++++++ .../parenthesized-importcall.js | 26 ++++++++++++++++++ ...ssion-assignment-assignmentexpression-0.js | 26 ++++++++++++++++++ ...ssion-assignment-assignmentexpression-1.js | 26 ++++++++++++++++++ ...ssion-assignment-assignmentexpression-2.js | 26 ++++++++++++++++++ ...lesce-assignment-assignmentexpression-0.js | 26 ++++++++++++++++++ ...lesce-assignment-assignmentexpression-1.js | 26 ++++++++++++++++++ ...lesce-assignment-assignmentexpression-2.js | 26 ++++++++++++++++++ ...l-and-assignment-assignmentexpression-0.js | 26 ++++++++++++++++++ ...l-and-assignment-assignmentexpression-1.js | 26 ++++++++++++++++++ ...l-and-assignment-assignmentexpression-2.js | 26 ++++++++++++++++++ ...al-or-assignment-assignmentexpression-0.js | 26 ++++++++++++++++++ ...al-or-assignment-assignmentexpression-1.js | 26 ++++++++++++++++++ ...al-or-assignment-assignmentexpression-2.js | 26 ++++++++++++++++++ ...ized-lefthandsideexpression-minus-minus.js | 26 ++++++++++++++++++ ...esized-lefthandsideexpression-plus-plus.js | 26 ++++++++++++++++++ ...ssion-logical-and-bitwiseorexpression-0.js | 26 ++++++++++++++++++ ...ssion-logical-and-bitwiseorexpression-1.js | 26 ++++++++++++++++++ ...ssion-logical-and-bitwiseorexpression-2.js | 26 ++++++++++++++++++ ...ssion-logical-or-logicalandexpression-0.js | 26 ++++++++++++++++++ ...ssion-logical-or-logicalandexpression-1.js | 26 ++++++++++++++++++ ...ssion-logical-or-logicalandexpression-2.js | 26 ++++++++++++++++++ ...esized-memberexpression-templateliteral.js | 26 ++++++++++++++++++ ...renthesized-minus-minus-unaryexpression.js | 26 ++++++++++++++++++ ...tiveoperator-exponentiationexpression-0.js | 26 ++++++++++++++++++ ...tiveoperator-exponentiationexpression-1.js | 26 ++++++++++++++++++ ...tiveoperator-exponentiationexpression-2.js | 26 ++++++++++++++++++ ...tiveoperator-exponentiationexpression-3.js | 26 ++++++++++++++++++ ...tiveoperator-exponentiationexpression-4.js | 26 ++++++++++++++++++ ...tiveoperator-exponentiationexpression-5.js | 26 ++++++++++++++++++ ...thesized-new-memberexpression-arguments.js | 26 ++++++++++++++++++ .../parenthesized-new-newexpression.js | 26 ++++++++++++++++++ .../parenthesized-optionalexpression.js | 27 +++++++++++++++++++ ...parenthesized-plus-plus-unaryexpression.js | 26 ++++++++++++++++++ ...imaryexpression-asyncfunctionexpression.js | 22 +++++++++++++++ ...maryexpression-asyncgeneratorexpression.js | 22 +++++++++++++++ ...sized-primaryexpression-classexpression.js | 22 +++++++++++++++ ...ed-primaryexpression-functionexpression.js | 22 +++++++++++++++ ...d-primaryexpression-generatorexpression.js | 22 +++++++++++++++ ...sized-primaryexpression-literal-boolean.js | 22 +++++++++++++++ ...thesized-primaryexpression-literal-null.js | 22 +++++++++++++++ ...sized-primaryexpression-literal-numeric.js | 22 +++++++++++++++ ...esized-primaryexpression-literal-string.js | 22 +++++++++++++++ ...hesized-primaryexpression-objectliteral.js | 22 +++++++++++++++ ...maryexpression-regularexpressionliteral.js | 22 +++++++++++++++ ...sized-primaryexpression-templateliteral.js | 22 +++++++++++++++ .../parenthesized-primaryexpression-this.js | 22 +++++++++++++++ ...ater-than-or-equal-to-shiftexpression-0.js | 26 ++++++++++++++++++ ...ater-than-or-equal-to-shiftexpression-1.js | 26 ++++++++++++++++++ ...ater-than-or-equal-to-shiftexpression-2.js | 26 ++++++++++++++++++ ...pression-greater-than-shiftexpression-0.js | 26 ++++++++++++++++++ ...pression-greater-than-shiftexpression-1.js | 26 ++++++++++++++++++ ...pression-greater-than-shiftexpression-2.js | 26 ++++++++++++++++++ ...lationalexpression-in-shiftexpression-0.js | 26 ++++++++++++++++++ ...lationalexpression-in-shiftexpression-1.js | 26 ++++++++++++++++++ ...lationalexpression-in-shiftexpression-2.js | 26 ++++++++++++++++++ ...expression-instanceof-shiftexpression-0.js | 26 ++++++++++++++++++ ...expression-instanceof-shiftexpression-1.js | 26 ++++++++++++++++++ ...expression-instanceof-shiftexpression-2.js | 26 ++++++++++++++++++ ...less-than-or-equal-to-shiftexpression-0.js | 26 ++++++++++++++++++ ...less-than-or-equal-to-shiftexpression-1.js | 26 ++++++++++++++++++ ...less-than-or-equal-to-shiftexpression-2.js | 26 ++++++++++++++++++ ...lexpression-less-than-shiftexpression-0.js | 26 ++++++++++++++++++ ...lexpression-less-than-shiftexpression-1.js | 26 ++++++++++++++++++ ...lexpression-less-than-shiftexpression-2.js | 26 ++++++++++++++++++ ...ssion-bitwise-left-additiveexpression-0.js | 26 ++++++++++++++++++ ...ssion-bitwise-left-additiveexpression-1.js | 26 ++++++++++++++++++ ...ssion-bitwise-left-additiveexpression-2.js | 26 ++++++++++++++++++ ...sion-bitwise-right-additiveexpression-0.js | 26 ++++++++++++++++++ ...sion-bitwise-right-additiveexpression-1.js | 26 ++++++++++++++++++ ...sion-bitwise-right-additiveexpression-2.js | 26 ++++++++++++++++++ ...gned-bitwise-right-additiveexpression-0.js | 26 ++++++++++++++++++ ...gned-bitwise-right-additiveexpression-1.js | 26 ++++++++++++++++++ ...gned-bitwise-right-additiveexpression-2.js | 26 ++++++++++++++++++ ...texpression-else-assignmentexpression-0.js | 26 ++++++++++++++++++ ...texpression-else-assignmentexpression-1.js | 26 ++++++++++++++++++ ...texpression-else-assignmentexpression-2.js | 26 ++++++++++++++++++ ...-unaryexpression-delete-unaryexpression.js | 26 ++++++++++++++++++ ...xpression-exclamation-unaryexpression-0.js | 26 ++++++++++++++++++ ...xpression-exclamation-unaryexpression-1.js | 26 ++++++++++++++++++ ...xpression-exclamation-unaryexpression-2.js | 26 ++++++++++++++++++ ...unaryexpression-minus-unaryexpression-0.js | 26 ++++++++++++++++++ ...unaryexpression-minus-unaryexpression-1.js | 26 ++++++++++++++++++ ...unaryexpression-minus-unaryexpression-2.js | 26 ++++++++++++++++++ ...-unaryexpression-plus-unaryexpression-0.js | 26 ++++++++++++++++++ ...-unaryexpression-plus-unaryexpression-1.js | 26 ++++++++++++++++++ ...-unaryexpression-plus-unaryexpression-2.js | 26 ++++++++++++++++++ ...unaryexpression-tilde-unaryexpression-0.js | 26 ++++++++++++++++++ ...unaryexpression-tilde-unaryexpression-1.js | 26 ++++++++++++++++++ ...unaryexpression-tilde-unaryexpression-2.js | 26 ++++++++++++++++++ ...naryexpression-typeof-unaryexpression-0.js | 26 ++++++++++++++++++ ...naryexpression-typeof-unaryexpression-1.js | 26 ++++++++++++++++++ ...naryexpression-typeof-unaryexpression-2.js | 26 ++++++++++++++++++ ...-unaryexpression-void-unaryexpression-0.js | 26 ++++++++++++++++++ ...-unaryexpression-void-unaryexpression-1.js | 26 ++++++++++++++++++ ...-unaryexpression-void-unaryexpression-2.js | 26 ++++++++++++++++++ ...on-star-star-exponentiationexpression-0.js | 26 ++++++++++++++++++ ...on-star-star-exponentiationexpression-1.js | 26 ++++++++++++++++++ ...on-star-star-exponentiationexpression-2.js | 26 ++++++++++++++++++ .../parenthesized-yieldexpression-0.js | 26 ++++++++++++++++++ .../parenthesized-yieldexpression-1.js | 26 ++++++++++++++++++ ...ple-basic-identifierreference-arguments.js | 10 +++++++ .../simple-basic-identifierreference-await.js | 11 ++++++++ .../simple-basic-identifierreference-eval.js | 10 +++++++ .../simple-basic-identifierreference-yield.js | 10 +++++++ ...imple-complex-callexpression-expression.js | 18 +++++++++++++ ...e-complex-callexpression.identifiername.js | 18 +++++++++++++ ...ple-complex-memberexpression-expression.js | 18 +++++++++++++ ...complex-memberexpression.identifiername.js | 18 +++++++++++++ 312 files changed, 7443 insertions(+) create mode 100644 test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-arrowfunction-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-arrowfunction-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-arrowfunction-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-arrowfunction-3.js create mode 100644 test/language/expressions/assignmenttargettype/direct-arrowfunction-4.js create mode 100644 test/language/expressions/assignmenttargettype/direct-arrowfunction-5.js create mode 100644 test/language/expressions/assignmenttargettype/direct-arrowfunction-6.js create mode 100644 test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-3.js create mode 100644 test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-4.js create mode 100644 test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-5.js create mode 100644 test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-6.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-callexpression-arguments.js create mode 100644 test/language/expressions/assignmenttargettype/direct-callexpression-templateliteral.js create mode 100644 test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-identifierreference-arguments-strict.js create mode 100644 test/language/expressions/assignmenttargettype/direct-identifierreference-eval-strict.js create mode 100644 test/language/expressions/assignmenttargettype/direct-import.meta.js create mode 100644 test/language/expressions/assignmenttargettype/direct-importcall.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-minus-minus.js create mode 100644 test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-plus-plus.js create mode 100644 test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-memberexpression-templateliteral.js create mode 100644 test/language/expressions/assignmenttargettype/direct-minus-minus-unaryexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js create mode 100644 test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js create mode 100644 test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js create mode 100644 test/language/expressions/assignmenttargettype/direct-new-memberexpression-arguments.js create mode 100644 test/language/expressions/assignmenttargettype/direct-new-newexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-optionalexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-plus-plus-unaryexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncfunctionexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncgeneratorexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-classexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-functionexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-generatorexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-boolean.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-null.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-numeric.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-string.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-objectliteral.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-regularexpressionliteral.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-templateliteral.js create mode 100644 test/language/expressions/assignmenttargettype/direct-primaryexpression-this.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-delete-unaryexpression.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/direct-yieldexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/direct-yieldexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-3.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-4.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-5.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-6.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-3.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-4.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-5.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-6.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-callexpression-arguments.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-callexpression-templateliteral.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-identifierreference-arguments-strict.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-identifierreference-eval-strict.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-import.meta.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-importcall.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-minus-minus.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-plus-plus.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-memberexpression-templateliteral.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-minus-minus-unaryexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-new-memberexpression-arguments.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-new-newexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-plus-plus-unaryexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncfunctionexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncgeneratorexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-classexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-functionexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-generatorexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-boolean.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-null.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-numeric.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-string.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-objectliteral.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-regularexpressionliteral.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-templateliteral.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-this.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-delete-unaryexpression.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-2.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-0.js create mode 100644 test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-1.js create mode 100644 test/language/expressions/assignmenttargettype/simple-basic-identifierreference-arguments.js create mode 100644 test/language/expressions/assignmenttargettype/simple-basic-identifierreference-await.js create mode 100644 test/language/expressions/assignmenttargettype/simple-basic-identifierreference-eval.js create mode 100644 test/language/expressions/assignmenttargettype/simple-basic-identifierreference-yield.js create mode 100644 test/language/expressions/assignmenttargettype/simple-complex-callexpression-expression.js create mode 100644 test/language/expressions/assignmenttargettype/simple-complex-callexpression.identifiername.js create mode 100644 test/language/expressions/assignmenttargettype/simple-complex-memberexpression-expression.js create mode 100644 test/language/expressions/assignmenttargettype/simple-complex-memberexpression.identifiername.js diff --git a/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-0.js b/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-0.js new file mode 100644 index 0000000000..fa6d829c22 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-1.js b/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-1.js new file mode 100644 index 0000000000..5168d1a45c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-2.js b/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-2.js new file mode 100644 index 0000000000..5e47ac79ce --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-additiveexpression-minus-multiplicativeexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-0.js b/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-0.js new file mode 100644 index 0000000000..6f3cad8992 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-1.js b/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-1.js new file mode 100644 index 0000000000..23ace08a91 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-2.js b/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-2.js new file mode 100644 index 0000000000..549cf2cd20 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-additiveexpression-plus-multiplicativeexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-arrowfunction-0.js b/test/language/expressions/assignmenttargettype/direct-arrowfunction-0.js new file mode 100644 index 0000000000..f848bcb7c7 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-arrowfunction-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-arrowfunction-1.js b/test/language/expressions/assignmenttargettype/direct-arrowfunction-1.js new file mode 100644 index 0000000000..bfc10ae129 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-arrowfunction-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-arrowfunction-2.js b/test/language/expressions/assignmenttargettype/direct-arrowfunction-2.js new file mode 100644 index 0000000000..a1da4849ae --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-arrowfunction-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-arrowfunction-3.js b/test/language/expressions/assignmenttargettype/direct-arrowfunction-3.js new file mode 100644 index 0000000000..abcd669235 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-arrowfunction-3.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-arrowfunction-4.js b/test/language/expressions/assignmenttargettype/direct-arrowfunction-4.js new file mode 100644 index 0000000000..672573c0da --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-arrowfunction-4.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-arrowfunction-5.js b/test/language/expressions/assignmenttargettype/direct-arrowfunction-5.js new file mode 100644 index 0000000000..730311208a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-arrowfunction-5.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-arrowfunction-6.js b/test/language/expressions/assignmenttargettype/direct-arrowfunction-6.js new file mode 100644 index 0000000000..070bcbcc9b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-arrowfunction-6.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-0.js b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-0.js new file mode 100644 index 0000000000..bf49833fa2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-1.js b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-1.js new file mode 100644 index 0000000000..cf443e1ae1 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-2.js b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-2.js new file mode 100644 index 0000000000..ebb7f079ee --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-3.js b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-3.js new file mode 100644 index 0000000000..a9bb3a307e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-3.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-4.js b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-4.js new file mode 100644 index 0000000000..b61a3c0444 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-4.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-5.js b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-5.js new file mode 100644 index 0000000000..6a776f36f7 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-5.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-6.js b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-6.js new file mode 100644 index 0000000000..e5d954b854 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-asyncarrowfunction-6.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-0.js b/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-0.js new file mode 100644 index 0000000000..d9633fa89a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-1.js b/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-1.js new file mode 100644 index 0000000000..a15b12762e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-2.js b/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-2.js new file mode 100644 index 0000000000..6bf79f0535 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwiseandexpression-bitwise-and-equalityexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js b/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js new file mode 100644 index 0000000000..edd49f1444 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js b/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js new file mode 100644 index 0000000000..9024c6fd10 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js b/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js new file mode 100644 index 0000000000..1021c65bae --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js b/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js new file mode 100644 index 0000000000..fc37fbc9bd --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js b/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js new file mode 100644 index 0000000000..8d4e0b98dc --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js b/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js new file mode 100644 index 0000000000..6b01abc8ba --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-callexpression-arguments.js b/test/language/expressions/assignmenttargettype/direct-callexpression-arguments.js new file mode 100644 index 0000000000..5e38899a8c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-callexpression-arguments.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-callexpression-templateliteral.js b/test/language/expressions/assignmenttargettype/direct-callexpression-templateliteral.js new file mode 100644 index 0000000000..a61569950c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-callexpression-templateliteral.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js b/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js new file mode 100644 index 0000000000..2c04ba4b47 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js b/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js new file mode 100644 index 0000000000..8a69e2d817 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js b/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js new file mode 100644 index 0000000000..63e865c14a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-0.js new file mode 100644 index 0000000000..12f1ff769b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-1.js new file mode 100644 index 0000000000..9c0033dc44 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-2.js new file mode 100644 index 0000000000..7ac79e0bc4 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-equal-relationalexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-0.js new file mode 100644 index 0000000000..998642edd9 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-1.js new file mode 100644 index 0000000000..dbc0fd0c1a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-2.js new file mode 100644 index 0000000000..6946c1d933 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-abstract-not-equal-relationalexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-0.js new file mode 100644 index 0000000000..9adcd411f2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-1.js new file mode 100644 index 0000000000..1e28edd8c6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-2.js new file mode 100644 index 0000000000..08e62d03c4 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-equal-relationalexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-0.js new file mode 100644 index 0000000000..0d08afd350 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-1.js new file mode 100644 index 0000000000..9b886478be --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-2.js new file mode 100644 index 0000000000..45000162d6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-equalityexpression-strict-not-equal-relationalexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-0.js new file mode 100644 index 0000000000..4b4f11ebb8 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-1.js new file mode 100644 index 0000000000..8d6cab90c6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-2.js new file mode 100644 index 0000000000..2679a7a2bb --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-expression-comma-assignmentexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-identifierreference-arguments-strict.js b/test/language/expressions/assignmenttargettype/direct-identifierreference-arguments-strict.js new file mode 100644 index 0000000000..57901f814f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-identifierreference-arguments-strict.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-identifierreference-eval-strict.js b/test/language/expressions/assignmenttargettype/direct-identifierreference-eval-strict.js new file mode 100644 index 0000000000..62ae19e183 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-identifierreference-eval-strict.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-import.meta.js b/test/language/expressions/assignmenttargettype/direct-import.meta.js new file mode 100644 index 0000000000..fba00e8049 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-import.meta.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-importcall.js b/test/language/expressions/assignmenttargettype/direct-importcall.js new file mode 100644 index 0000000000..dbcbf30097 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-importcall.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..cf24704271 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..d873843161 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..3a1a54e109 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-assignment-assignmentexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..baa50c3185 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..2d3255e75d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..f416c211f9 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..ae461e5f23 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..82447e8d2e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..9e4d6e972b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..e08f5137b0 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..4886356017 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..481febded3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-minus-minus.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-minus-minus.js new file mode 100644 index 0000000000..9f82ddc129 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-minus-minus.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-plus-plus.js b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-plus-plus.js new file mode 100644 index 0000000000..ad85e5510e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-lefthandsideexpression-plus-plus.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-0.js b/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-0.js new file mode 100644 index 0000000000..07aeb2692b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-1.js b/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-1.js new file mode 100644 index 0000000000..6cb5e2ba06 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-2.js b/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-2.js new file mode 100644 index 0000000000..166073b8f2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-logicalandexpression-logical-and-bitwiseorexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-0.js b/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-0.js new file mode 100644 index 0000000000..bf4a17e63d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-1.js b/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-1.js new file mode 100644 index 0000000000..603950703f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-2.js b/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-2.js new file mode 100644 index 0000000000..f8008ae5ae --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-logicalorexpression-logical-or-logicalandexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-memberexpression-templateliteral.js b/test/language/expressions/assignmenttargettype/direct-memberexpression-templateliteral.js new file mode 100644 index 0000000000..67a5b8751f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-memberexpression-templateliteral.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-minus-minus-unaryexpression.js b/test/language/expressions/assignmenttargettype/direct-minus-minus-unaryexpression.js new file mode 100644 index 0000000000..c9ca061842 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-minus-minus-unaryexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js new file mode 100644 index 0000000000..d9b87aa29d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js new file mode 100644 index 0000000000..a5eabdbac6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js new file mode 100644 index 0000000000..969d3539ce --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js new file mode 100644 index 0000000000..c865f7922c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js new file mode 100644 index 0000000000..f42e19a055 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js new file mode 100644 index 0000000000..eed8fda1a9 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-new-memberexpression-arguments.js b/test/language/expressions/assignmenttargettype/direct-new-memberexpression-arguments.js new file mode 100644 index 0000000000..35deb2805c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-new-memberexpression-arguments.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-new-newexpression.js b/test/language/expressions/assignmenttargettype/direct-new-newexpression.js new file mode 100644 index 0000000000..83e39cbdf6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-new-newexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-optionalexpression.js b/test/language/expressions/assignmenttargettype/direct-optionalexpression.js new file mode 100644 index 0000000000..ae45ab2ad6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-optionalexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-plus-plus-unaryexpression.js b/test/language/expressions/assignmenttargettype/direct-plus-plus-unaryexpression.js new file mode 100644 index 0000000000..14c4f062c6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-plus-plus-unaryexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncfunctionexpression.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncfunctionexpression.js new file mode 100644 index 0000000000..d750974e3f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncfunctionexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncgeneratorexpression.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncgeneratorexpression.js new file mode 100644 index 0000000000..d52ebfce5e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-asyncgeneratorexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-classexpression.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-classexpression.js new file mode 100644 index 0000000000..d8268f401b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-classexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-functionexpression.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-functionexpression.js new file mode 100644 index 0000000000..2ddc98aad0 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-functionexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-generatorexpression.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-generatorexpression.js new file mode 100644 index 0000000000..b2f39513ca --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-generatorexpression.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-boolean.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-boolean.js new file mode 100644 index 0000000000..ab5aa4bc14 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-boolean.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-null.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-null.js new file mode 100644 index 0000000000..4f2dff0dde --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-null.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-numeric.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-numeric.js new file mode 100644 index 0000000000..6ab95db544 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-numeric.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-string.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-string.js new file mode 100644 index 0000000000..23f4c1db5b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-literal-string.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-objectliteral.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-objectliteral.js new file mode 100644 index 0000000000..0d65a65d96 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-objectliteral.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-regularexpressionliteral.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-regularexpressionliteral.js new file mode 100644 index 0000000000..ca340fc6ba --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-regularexpressionliteral.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-templateliteral.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-templateliteral.js new file mode 100644 index 0000000000..05ff29da7d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-templateliteral.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-primaryexpression-this.js b/test/language/expressions/assignmenttargettype/direct-primaryexpression-this.js new file mode 100644 index 0000000000..468d0cbf35 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-primaryexpression-this.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js new file mode 100644 index 0000000000..3b0a3f8aa6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js new file mode 100644 index 0000000000..6bef4dcf7f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js @@ -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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js new file mode 100644 index 0000000000..de52e73717 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-or-equal-to-shiftexpression-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 + + RelationalExpression >= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true >= false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-0.js new file mode 100644 index 0000000000..41718f177b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-1.js new file mode 100644 index 0000000000..9479d22f36 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-2.js new file mode 100644 index 0000000000..46beba316b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-greater-than-shiftexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-shiftexpression-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 + + RelationalExpression > ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true > false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-0.js new file mode 100644 index 0000000000..33a54ac8ad --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-in-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 in ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + x in y = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-1.js new file mode 100644 index 0000000000..78b7112505 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-in-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 in ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + 1 in 2 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-2.js new file mode 100644 index 0000000000..5eb84fd0e5 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-in-shiftexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-in-shiftexpression-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 + + RelationalExpression in ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true in false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-0.js new file mode 100644 index 0000000000..bb6f7fa01e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-instanceof-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 instanceof ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + x instanceof y = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-1.js new file mode 100644 index 0000000000..92fa88ed69 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-instanceof-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 instanceof ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + 1 instanceof 2 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-2.js new file mode 100644 index 0000000000..9143e316bc --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-instanceof-shiftexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-instanceof-shiftexpression-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 + + RelationalExpression instanceof ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true instanceof false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-0.js new file mode 100644 index 0000000000..233ddfcf5a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-1.js new file mode 100644 index 0000000000..09ce718746 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-2.js new file mode 100644 index 0000000000..d70bd60377 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-or-equal-to-shiftexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-or-equal-to-shiftexpression-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 + + RelationalExpression <= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true <= false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-0.js new file mode 100644 index 0000000000..826e86ce26 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-1.js new file mode 100644 index 0000000000..245f11d655 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-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; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-2.js new file mode 100644 index 0000000000..700c8f48af --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-relationalexpression-less-than-shiftexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-shiftexpression-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 + + RelationalExpression < ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true < false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-0.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-0.js new file mode 100644 index 0000000000..92f1e475ad --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-left-additiveexpression-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 + + ShiftExpression << AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + x << y = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-1.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-1.js new file mode 100644 index 0000000000..6c57bebf24 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-left-additiveexpression-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 + + ShiftExpression << AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + 1 << 2 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-2.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-2.js new file mode 100644 index 0000000000..015227c5e6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-left-additiveexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-left-additiveexpression-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 + + ShiftExpression << AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true << false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-0.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-0.js new file mode 100644 index 0000000000..dbf1d738de --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-right-additiveexpression-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 + + ShiftExpression >> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + x >> y = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-1.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-1.js new file mode 100644 index 0000000000..7fbdcfb498 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-right-additiveexpression-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 + + ShiftExpression >> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + 1 >> 2 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-2.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-2.js new file mode 100644 index 0000000000..07d76fb31f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-bitwise-right-additiveexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-right-additiveexpression-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 + + ShiftExpression >> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true >> false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js new file mode 100644 index 0000000000..d2c0c8b042 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-unsigned-bitwise-right-additiveexpression-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 + + ShiftExpression >>> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + x >>> y = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js new file mode 100644 index 0000000000..9db5e95688 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-unsigned-bitwise-right-additiveexpression-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 + + ShiftExpression >>> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + 1 >>> 2 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js b/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js new file mode 100644 index 0000000000..395c9d9849 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-unsigned-bitwise-right-additiveexpression-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 + + ShiftExpression >>> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true >>> false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js new file mode 100644 index 0000000000..a1fb80e22a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shortcircuitexpression-question-assignmentexpression-else-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 + + ShortCircuitExpression ? AssignmentExpression : AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x ? y : z) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js new file mode 100644 index 0000000000..e3c65f00b4 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shortcircuitexpression-question-assignmentexpression-else-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 + + ShortCircuitExpression ? AssignmentExpression : AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 ? 2 : 3) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js new file mode 100644 index 0000000000..3998a00f3d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shortcircuitexpression-question-assignmentexpression-else-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 + + ShortCircuitExpression ? AssignmentExpression : AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true ? false : true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-delete-unaryexpression.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-delete-unaryexpression.js new file mode 100644 index 0000000000..544eaf5ca2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-delete-unaryexpression.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-delete-unaryexpression.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 + + UnaryExpression: delete UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + delete x.y = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-0.js new file mode 100644 index 0000000000..d749b832b1 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-exclamation-unaryexpression-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 + + UnaryExpression: ! UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + !x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-1.js new file mode 100644 index 0000000000..ef4ac44a56 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-exclamation-unaryexpression-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 + + UnaryExpression: ! UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + !1 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-2.js new file mode 100644 index 0000000000..68c75b35d3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-exclamation-unaryexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-exclamation-unaryexpression-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 + + UnaryExpression: ! UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + !true = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-0.js new file mode 100644 index 0000000000..454f23856a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-minus-unaryexpression-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 + + UnaryExpression: - UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + -x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-1.js new file mode 100644 index 0000000000..feb592c016 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-minus-unaryexpression-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 + + UnaryExpression: - UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + -1 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-2.js new file mode 100644 index 0000000000..97e011f776 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-minus-unaryexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-minus-unaryexpression-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 + + UnaryExpression: - UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + -true = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-0.js new file mode 100644 index 0000000000..69eb9408bb --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-plus-unaryexpression-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 + + UnaryExpression: + UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + +x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-1.js new file mode 100644 index 0000000000..642d085c03 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-plus-unaryexpression-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 + + UnaryExpression: + UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + +1 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-2.js new file mode 100644 index 0000000000..4b8cd3ebd2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-plus-unaryexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-plus-unaryexpression-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 + + UnaryExpression: + UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + +true = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-0.js new file mode 100644 index 0000000000..3a2dcfe02a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-tilde-unaryexpression-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 + + UnaryExpression: ~ UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + ~x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-1.js new file mode 100644 index 0000000000..0f8f864c93 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-tilde-unaryexpression-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 + + UnaryExpression: ~ UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + ~1 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-2.js new file mode 100644 index 0000000000..0017de5b1f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-tilde-unaryexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-tilde-unaryexpression-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 + + UnaryExpression: ~ UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + ~true = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-0.js new file mode 100644 index 0000000000..ae8ddb789c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-typeof-unaryexpression-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 + + UnaryExpression: typeof UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + typeof x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-1.js new file mode 100644 index 0000000000..03032c5e5c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-typeof-unaryexpression-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 + + UnaryExpression: typeof UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + typeof 1 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-2.js new file mode 100644 index 0000000000..71f43797a7 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-typeof-unaryexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-typeof-unaryexpression-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 + + UnaryExpression: typeof UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + typeof true = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-0.js new file mode 100644 index 0000000000..9bede1a402 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-void-unaryexpression-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 + + UnaryExpression: void UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + void x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-1.js new file mode 100644 index 0000000000..ab5ed9979d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-void-unaryexpression-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 + + UnaryExpression: void UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + void 1 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-2.js new file mode 100644 index 0000000000..79d946394e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-unaryexpression-void-unaryexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-void-unaryexpression-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 + + UnaryExpression: void UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + void true = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-0.js b/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-0.js new file mode 100644 index 0000000000..adc063c199 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/updateexpression-star-star-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 + + UpdateExpression ** ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + x ** y = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-1.js b/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-1.js new file mode 100644 index 0000000000..4f53d32c1d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/updateexpression-star-star-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 + + UpdateExpression ** ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + 1 ** 2 = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-2.js b/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-2.js new file mode 100644 index 0000000000..13f1d0ed79 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-updateexpression-star-star-exponentiationexpression-2.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/updateexpression-star-star-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 + + UpdateExpression ** ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + true ** false = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-yieldexpression-0.js b/test/language/expressions/assignmenttargettype/direct-yieldexpression-0.js new file mode 100644 index 0000000000..533328f9d2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-yieldexpression-0.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/yieldexpression-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 + + YieldExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + yield x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/direct-yieldexpression-1.js b/test/language/expressions/assignmenttargettype/direct-yieldexpression-1.js new file mode 100644 index 0000000000..97c25e8c49 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/direct-yieldexpression-1.js @@ -0,0 +1,23 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/yieldexpression-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 + + YieldExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + yield * x = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-0.js new file mode 100644 index 0000000000..1a9bff1546 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/additiveexpression-minus-multiplicativeexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AdditiveExpression - MultiplicativeExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x - y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-1.js new file mode 100644 index 0000000000..d760c99002 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/additiveexpression-minus-multiplicativeexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AdditiveExpression - MultiplicativeExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 - 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-2.js new file mode 100644 index 0000000000..e186a15e0e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-minus-multiplicativeexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/additiveexpression-minus-multiplicativeexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AdditiveExpression - MultiplicativeExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true - false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-0.js new file mode 100644 index 0000000000..b06c8964e3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/additiveexpression-plus-multiplicativeexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AdditiveExpression + MultiplicativeExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x + y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-1.js new file mode 100644 index 0000000000..eb19a87fed --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/additiveexpression-plus-multiplicativeexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AdditiveExpression + MultiplicativeExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 + 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-2.js new file mode 100644 index 0000000000..e34496c5e8 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-additiveexpression-plus-multiplicativeexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/additiveexpression-plus-multiplicativeexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AdditiveExpression + MultiplicativeExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true + false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-0.js b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-0.js new file mode 100644 index 0000000000..59967d46e8 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/arrowfunction-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (() => {}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-1.js b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-1.js new file mode 100644 index 0000000000..8852798322 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/arrowfunction-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (() => ({})) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-2.js b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-2.js new file mode 100644 index 0000000000..2cd321afee --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/arrowfunction-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x => x)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-3.js b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-3.js new file mode 100644 index 0000000000..880acdefe6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-3.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/arrowfunction-3.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (((x) => x)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-4.js b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-4.js new file mode 100644 index 0000000000..e31bb42f53 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-4.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/arrowfunction-4.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((() => 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-5.js b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-5.js new file mode 100644 index 0000000000..46f6a7c165 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-5.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/arrowfunction-5.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((() => true)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-6.js b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-6.js new file mode 100644 index 0000000000..98b7c5a203 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-arrowfunction-6.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/arrowfunction-6.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((() => 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-0.js b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-0.js new file mode 100644 index 0000000000..7bfc6d613e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/asyncarrowfunction-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AsyncArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (async () => {}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-1.js b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-1.js new file mode 100644 index 0000000000..f1d55f27c3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/asyncarrowfunction-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AsyncArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (async () => ({})) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-2.js b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-2.js new file mode 100644 index 0000000000..988a62be6c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/asyncarrowfunction-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AsyncArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((async x => x)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-3.js b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-3.js new file mode 100644 index 0000000000..4c0949c157 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-3.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/asyncarrowfunction-3.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AsyncArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((async (x) => x)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-4.js b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-4.js new file mode 100644 index 0000000000..68662237d8 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-4.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/asyncarrowfunction-4.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AsyncArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((async () => 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-5.js b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-5.js new file mode 100644 index 0000000000..93168fc305 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-5.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/asyncarrowfunction-5.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AsyncArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((async () => true)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-6.js b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-6.js new file mode 100644 index 0000000000..90f930ee90 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-asyncarrowfunction-6.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/asyncarrowfunction-6.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + AsyncArrowFunction + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((async () => 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-0.js new file mode 100644 index 0000000000..79559a9c4d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseANDExpression: BitwiseANDExpression & EqualityExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x & y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-1.js new file mode 100644 index 0000000000..3a5f986fab --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseANDExpression: BitwiseANDExpression & EqualityExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 & 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-2.js new file mode 100644 index 0000000000..8d5d6cf10c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseandexpression-bitwise-and-equalityexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseANDExpression: BitwiseANDExpression & EqualityExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true & false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js new file mode 100644 index 0000000000..72878fe22a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x | y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js new file mode 100644 index 0000000000..584e8f084a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 | 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js new file mode 100644 index 0000000000..e984b35552 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwiseorexpression-bitwise-or-bitwisexorexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true | false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js new file mode 100644 index 0000000000..db7f5b113a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x ^ y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js new file mode 100644 index 0000000000..b3096ac058 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 ^ 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js new file mode 100644 index 0000000000..ee53c5a8aa --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true ^ false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-callexpression-arguments.js b/test/language/expressions/assignmenttargettype/parenthesized-callexpression-arguments.js new file mode 100644 index 0000000000..ed0458e24c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-callexpression-arguments.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/callexpression-arguments.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + CallExpression Arguments + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (f()) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-callexpression-templateliteral.js b/test/language/expressions/assignmenttargettype/parenthesized-callexpression-templateliteral.js new file mode 100644 index 0000000000..8a93152815 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-callexpression-templateliteral.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/callexpression-templateliteral.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + CallExpression TemplateLiteral + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (f()``) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js new file mode 100644 index 0000000000..67361ecb72 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x ?? y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js new file mode 100644 index 0000000000..2c0baf1f3d --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 ?? 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js new file mode 100644 index 0000000000..4ae6af4c91 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-coalesceexpressionhead-coalesce-bitwiseorexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true ?? false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-0.js new file mode 100644 index 0000000000..76449483bb --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression == RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x == y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-1.js new file mode 100644 index 0000000000..b06a31924b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression == RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 == 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-2.js new file mode 100644 index 0000000000..05858a4da0 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-equal-relationalexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression == RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true == false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-0.js new file mode 100644 index 0000000000..2795a696d1 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-0.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression != RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x != y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-1.js new file mode 100644 index 0000000000..973b6d8dfd --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-1.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression != RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 != 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-2.js new file mode 100644 index 0000000000..44b5ce7038 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-abstract-not-equal-relationalexpression-2.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression != RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true != false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-0.js new file mode 100644 index 0000000000..1492f4303f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression === RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x == y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-1.js new file mode 100644 index 0000000000..d343a6f216 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression === RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 == 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-2.js new file mode 100644 index 0000000000..d0b6465ab3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-equal-relationalexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression === RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true == false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-0.js new file mode 100644 index 0000000000..9ae0d7d4a1 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-0.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression !== RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x !== y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-1.js new file mode 100644 index 0000000000..65f925e1f9 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-1.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression !== RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 !== 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-2.js new file mode 100644 index 0000000000..5e0a92c263 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-equalityexpression-strict-not-equal-relationalexpression-2.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + EqualityExpression !== RelationalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true !== false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-0.js new file mode 100644 index 0000000000..09aca217d5 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/expression-comma-assignmentexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + Expression: Expression , AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x, y = z)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-1.js new file mode 100644 index 0000000000..b7f6db4ec2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/expression-comma-assignmentexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + Expression: Expression , AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x, y = 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-2.js new file mode 100644 index 0000000000..d200ffd6b2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-expression-comma-assignmentexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/expression-comma-assignmentexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + Expression: Expression , AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x, y = true)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-identifierreference-arguments-strict.js b/test/language/expressions/assignmenttargettype/parenthesized-identifierreference-arguments-strict.js new file mode 100644 index 0000000000..79f90bfa07 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-identifierreference-arguments-strict.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/identifierreference-arguments-strict.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated, onlyStrict] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (arguments) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-identifierreference-eval-strict.js b/test/language/expressions/assignmenttargettype/parenthesized-identifierreference-eval-strict.js new file mode 100644 index 0000000000..20689f3ea7 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-identifierreference-eval-strict.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/identifierreference-eval-strict.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated, onlyStrict] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (eval) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-import.meta.js b/test/language/expressions/assignmenttargettype/parenthesized-import.meta.js new file mode 100644 index 0000000000..d1217f2edf --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-import.meta.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/import.meta.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + import.meta + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (import.meta) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-importcall.js b/test/language/expressions/assignmenttargettype/parenthesized-importcall.js new file mode 100644 index 0000000000..e6c7f18197 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-importcall.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/importcall.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated, module] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ImportCall + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (import()) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..80658ac248 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.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. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + 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; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..e51482ef02 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.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. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + 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; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..2297ed516b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-assignment-assignmentexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.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. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + 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; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..a052920bae --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression ??= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x ??= y)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..e5d0b681bc --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression ??= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x ??= 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..c2aec38e5e --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-coalesce-assignment-assignmentexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression ??= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x ??= true)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..68bf0ea338 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-0.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression &&= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x &&= y)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..2e3f90b118 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-1.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression &&= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x &&= 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..9c06ebb080 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-and-assignment-assignmentexpression-2.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression &&= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x &&= true)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js new file mode 100644 index 0000000000..82a1ee29c3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-0.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression ||= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x ||= y)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js new file mode 100644 index 0000000000..50486e269f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-1.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression ||= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x ||= 1)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js new file mode 100644 index 0000000000..a9bef45f07 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-logical-or-assignment-assignmentexpression-2.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LeftHandSideExpression ||= AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x ||= true)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-minus-minus.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-minus-minus.js new file mode 100644 index 0000000000..ce539d4a3c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-minus-minus.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-minus-minus.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UpdateExpression: LeftHandSideExpression-- + It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x--) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-plus-plus.js b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-plus-plus.js new file mode 100644 index 0000000000..d84756552f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-lefthandsideexpression-plus-plus.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/lefthandsideexpression-plus-plus.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UpdateExpression: LeftHandSideExpression ++ + It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x++) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-0.js new file mode 100644 index 0000000000..7d114886c0 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LogicalANDExpression: LogicalANDExpression && BitwiseORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x && y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-1.js new file mode 100644 index 0000000000..3c22d22a74 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LogicalANDExpression: LogicalANDExpression && BitwiseORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 && 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-2.js new file mode 100644 index 0000000000..3196e2c82a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-logicalandexpression-logical-and-bitwiseorexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LogicalANDExpression: LogicalANDExpression && BitwiseORExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true && false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-0.js new file mode 100644 index 0000000000..00a0279aa8 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LogicalORExpression: LogicalORExpression || LogicalANDExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x || y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-1.js new file mode 100644 index 0000000000..a2e42eefdd --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LogicalORExpression: LogicalORExpression || LogicalANDExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 || 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-2.js new file mode 100644 index 0000000000..bc0499a670 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-logicalorexpression-logical-or-logicalandexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + LogicalORExpression: LogicalORExpression || LogicalANDExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true || false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-memberexpression-templateliteral.js b/test/language/expressions/assignmenttargettype/parenthesized-memberexpression-templateliteral.js new file mode 100644 index 0000000000..89c3131113 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-memberexpression-templateliteral.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/memberexpression-templateliteral.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + MemberExpression TemplateLiteral + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (o.f()``) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-minus-minus-unaryexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-minus-minus-unaryexpression.js new file mode 100644 index 0000000000..a960e50d71 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-minus-minus-unaryexpression.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/minus-minus-unaryexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UpdateExpression: --UnaryExpression + It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (--x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js new file mode 100644 index 0000000000..33801c77dd --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + MultiplicativeExpression MultiplicativeOperator ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x * y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js new file mode 100644 index 0000000000..90cfa5be32 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + MultiplicativeExpression MultiplicativeOperator ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 * 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js new file mode 100644 index 0000000000..8a6aac7e23 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + MultiplicativeExpression MultiplicativeOperator ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true * false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js new file mode 100644 index 0000000000..bce4087479 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + MultiplicativeExpression MultiplicativeOperator ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x / y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js new file mode 100644 index 0000000000..f3b2320b26 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + MultiplicativeExpression MultiplicativeOperator ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 / 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js new file mode 100644 index 0000000000..ee642d3173 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + MultiplicativeExpression MultiplicativeOperator ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true / false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-new-memberexpression-arguments.js b/test/language/expressions/assignmenttargettype/parenthesized-new-memberexpression-arguments.js new file mode 100644 index 0000000000..8efbbf414c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-new-memberexpression-arguments.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/new-memberexpression-arguments.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + new MemberExpression Arguments + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (new f()) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-new-newexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-new-newexpression.js new file mode 100644 index 0000000000..97ac2691a5 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-new-newexpression.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/new-newexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + new NewExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (new f) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js new file mode 100644 index 0000000000..698612a179 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js @@ -0,0 +1,27 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/optionalexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +features: [optional-chaining] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + OptionalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x?.y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-plus-plus-unaryexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-plus-plus-unaryexpression.js new file mode 100644 index 0000000000..c58f4fff8c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-plus-plus-unaryexpression.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/plus-plus-unaryexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UpdateExpression: ++UnaryExpression + It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (++x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncfunctionexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncfunctionexpression.js new file mode 100644 index 0000000000..89d44d9404 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncfunctionexpression.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-asyncfunctionexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression AsyncFunctionExpression; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (async function () {}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncgeneratorexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncgeneratorexpression.js new file mode 100644 index 0000000000..83e7af26b4 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-asyncgeneratorexpression.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-asyncgeneratorexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression AsyncGeneratorExpression; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (async function () {}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-classexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-classexpression.js new file mode 100644 index 0000000000..6f5e2b7d30 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-classexpression.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-classexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression ClassExpression; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (class {}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-functionexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-functionexpression.js new file mode 100644 index 0000000000..2e9c908b09 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-functionexpression.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-functionexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression FunctionExpression, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (function() {}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-generatorexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-generatorexpression.js new file mode 100644 index 0000000000..7989329f68 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-generatorexpression.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-generatorexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression ArrayLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (function * () {}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-boolean.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-boolean.js new file mode 100644 index 0000000000..2c1ca49093 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-boolean.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-literal-boolean.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression Literal BooleanLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-null.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-null.js new file mode 100644 index 0000000000..889a5e4153 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-null.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-literal-null.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression Literal NullLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (null) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-numeric.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-numeric.js new file mode 100644 index 0000000000..f4cd37ab12 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-numeric.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-literal-numeric.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression Literal NumericLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (0) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-string.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-string.js new file mode 100644 index 0000000000..f278218480 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-literal-string.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-literal-string.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression Literal StringLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + ('') = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-objectliteral.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-objectliteral.js new file mode 100644 index 0000000000..b7afc74899 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-objectliteral.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-objectliteral.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression ObjectLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + ({}) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-regularexpressionliteral.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-regularexpressionliteral.js new file mode 100644 index 0000000000..a7e4c1a852 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-regularexpressionliteral.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-regularexpressionliteral.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression RegularExpressionLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (/1/) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-templateliteral.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-templateliteral.js new file mode 100644 index 0000000000..222a8b6405 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-templateliteral.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-templateliteral.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression TemplateLiteral; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (``) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-this.js b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-this.js new file mode 100644 index 0000000000..8dba094634 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-primaryexpression-this.js @@ -0,0 +1,22 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/primaryexpression-this.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: PrimaryExpression this; Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. +---*/ + +$DONOTEVALUATE(); + +function _() { + (this) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js new file mode 100644 index 0000000000..81b18ad715 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-0.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression >= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x >= y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js new file mode 100644 index 0000000000..3cd716f49b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-1.js @@ -0,0 +1,26 @@ +// 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/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression >= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 >= 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js new file mode 100644 index 0000000000..e1e60b4706 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-or-equal-to-shiftexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-or-equal-to-shiftexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression >= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true >= false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-0.js new file mode 100644 index 0000000000..16612917a2 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-shiftexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression > ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x > y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-1.js new file mode 100644 index 0000000000..ddcb790ecf --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-shiftexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression > ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 > 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-2.js new file mode 100644 index 0000000000..711936bea3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-greater-than-shiftexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-greater-than-shiftexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression > ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true > false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-0.js new file mode 100644 index 0000000000..89eb9e4900 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-in-shiftexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression in ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x in y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-1.js new file mode 100644 index 0000000000..f78e1d4121 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-in-shiftexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression in ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 in 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-2.js new file mode 100644 index 0000000000..8c1ce0b175 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-in-shiftexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-in-shiftexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression in ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true in false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-0.js new file mode 100644 index 0000000000..0e110e4e2a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-instanceof-shiftexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression instanceof ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x instanceof y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-1.js new file mode 100644 index 0000000000..99e7fcb8c7 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-instanceof-shiftexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression instanceof ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 instanceof 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-2.js new file mode 100644 index 0000000000..2587658d47 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-instanceof-shiftexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-instanceof-shiftexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression instanceof ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true instanceof false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-0.js new file mode 100644 index 0000000000..d3c6fb55a6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-or-equal-to-shiftexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression <= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x <= y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-1.js new file mode 100644 index 0000000000..41324905b3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-or-equal-to-shiftexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression <= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 <= 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-2.js new file mode 100644 index 0000000000..3cfa67f0d4 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-or-equal-to-shiftexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-or-equal-to-shiftexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression <= ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true <= false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-0.js new file mode 100644 index 0000000000..506f8a2238 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-shiftexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression < ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x < y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-1.js new file mode 100644 index 0000000000..531c0c030c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-shiftexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression < ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 < 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-2.js new file mode 100644 index 0000000000..6b96a57d71 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-relationalexpression-less-than-shiftexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/relationalexpression-less-than-shiftexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + RelationalExpression < ShiftExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true < false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-0.js new file mode 100644 index 0000000000..2aba85bfdc --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-left-additiveexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression << AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x << y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-1.js new file mode 100644 index 0000000000..5becf44655 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-left-additiveexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression << AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 << 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-2.js new file mode 100644 index 0000000000..adcae025e4 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-left-additiveexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-left-additiveexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression << AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true << false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-0.js new file mode 100644 index 0000000000..3130b6fcd3 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-right-additiveexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression >> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x >> y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-1.js new file mode 100644 index 0000000000..71a676d854 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-right-additiveexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression >> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 >> 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-2.js new file mode 100644 index 0000000000..841b9fe95f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-bitwise-right-additiveexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-bitwise-right-additiveexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression >> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true >> false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js new file mode 100644 index 0000000000..2270f70243 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-unsigned-bitwise-right-additiveexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression >>> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x >>> y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js new file mode 100644 index 0000000000..74b5fbf7c5 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-unsigned-bitwise-right-additiveexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression >>> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 >>> 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js new file mode 100644 index 0000000000..9b61767591 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shiftexpression-unsigned-bitwise-right-additiveexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shiftexpression-unsigned-bitwise-right-additiveexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShiftExpression >>> AdditiveExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true >>> false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js new file mode 100644 index 0000000000..6b3e14f2f9 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShortCircuitExpression ? AssignmentExpression : AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((x ? y : z)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js new file mode 100644 index 0000000000..829ca8d1f9 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShortCircuitExpression ? AssignmentExpression : AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((1 ? 2 : 3)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js new file mode 100644 index 0000000000..7a4528e950 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/shortcircuitexpression-question-assignmentexpression-else-assignmentexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + ShortCircuitExpression ? AssignmentExpression : AssignmentExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + ((true ? false : true)) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-delete-unaryexpression.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-delete-unaryexpression.js new file mode 100644 index 0000000000..6c801fdc30 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-delete-unaryexpression.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-delete-unaryexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: delete UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (delete x.y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-0.js new file mode 100644 index 0000000000..42ef5c4223 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-exclamation-unaryexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: ! UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (!x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-1.js new file mode 100644 index 0000000000..b3c35e6d27 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-exclamation-unaryexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: ! UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (!1) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-2.js new file mode 100644 index 0000000000..e88d5cc0bb --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-exclamation-unaryexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-exclamation-unaryexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: ! UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (!true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-0.js new file mode 100644 index 0000000000..96b90db86b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-minus-unaryexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: - UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (-x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-1.js new file mode 100644 index 0000000000..5b086a0110 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-minus-unaryexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: - UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (-1) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-2.js new file mode 100644 index 0000000000..3a7761df9c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-minus-unaryexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-minus-unaryexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: - UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (-true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-0.js new file mode 100644 index 0000000000..4a35cdd510 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-plus-unaryexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: + UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (+x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-1.js new file mode 100644 index 0000000000..1659ca7786 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-plus-unaryexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: + UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (+1) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-2.js new file mode 100644 index 0000000000..0ef2916d25 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-plus-unaryexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-plus-unaryexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: + UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (+true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-0.js new file mode 100644 index 0000000000..6c0e37dbab --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-tilde-unaryexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: ~ UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (~x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-1.js new file mode 100644 index 0000000000..ea5d205213 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-tilde-unaryexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: ~ UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (~1) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-2.js new file mode 100644 index 0000000000..20a5ce8452 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-tilde-unaryexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-tilde-unaryexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: ~ UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (~true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-0.js new file mode 100644 index 0000000000..0c80744225 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-typeof-unaryexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: typeof UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (typeof x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-1.js new file mode 100644 index 0000000000..78e3ef2fce --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-typeof-unaryexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: typeof UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (typeof 1) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-2.js new file mode 100644 index 0000000000..2f14325875 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-typeof-unaryexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-typeof-unaryexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: typeof UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (typeof true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-0.js new file mode 100644 index 0000000000..93d719f7e6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-void-unaryexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: void UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (void x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-1.js new file mode 100644 index 0000000000..9b602b6f69 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-void-unaryexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: void UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (void 1) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-2.js new file mode 100644 index 0000000000..ae92030eeb --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-unaryexpression-void-unaryexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/unaryexpression-void-unaryexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UnaryExpression: void UnaryExpression + Static Semantics AssignmentTargetType, Return invalid + +---*/ + +$DONOTEVALUATE(); + +function _() { + (void true) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-0.js new file mode 100644 index 0000000000..fc204a2b20 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/updateexpression-star-star-exponentiationexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UpdateExpression ** ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (x ** y) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-1.js new file mode 100644 index 0000000000..98ee967f7b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/updateexpression-star-star-exponentiationexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UpdateExpression ** ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (1 ** 2) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-2.js b/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-2.js new file mode 100644 index 0000000000..c144e6b44f --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-updateexpression-star-star-exponentiationexpression-2.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/updateexpression-star-star-exponentiationexpression-2.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + UpdateExpression ** ExponentiationExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (true ** false) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-0.js b/test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-0.js new file mode 100644 index 0000000000..eb3f273d29 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-0.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/yieldexpression-0.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + YieldExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (yield x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-1.js b/test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-1.js new file mode 100644 index 0000000000..59069d6b79 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/parenthesized-yieldexpression-1.js @@ -0,0 +1,26 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/yieldexpression-1.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + YieldExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +function _() { + (yield * x) = 1; +} + diff --git a/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-arguments.js b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-arguments.js new file mode 100644 index 0000000000..4ad1a8627c --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-arguments.js @@ -0,0 +1,10 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/identifierreference-arguments.case +// - src/assignment-target-type/simple/basic/default.template +/*--- +description: IdentifierReference Identifier, Return simple. (Simple Direct assignment) +flags: [generated, noStrict] +---*/ + + +arguments = 1; diff --git a/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-await.js b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-await.js new file mode 100644 index 0000000000..c6e6c0876b --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-await.js @@ -0,0 +1,11 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/identifierreference-await.case +// - src/assignment-target-type/simple/basic/default.template +/*--- +description: IdentifierReference await Return simple. (Simple Direct assignment) +flags: [generated] +---*/ +var await = 0; + + +await = 1; diff --git a/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-eval.js b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-eval.js new file mode 100644 index 0000000000..53ec3883cb --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-eval.js @@ -0,0 +1,10 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/identifierreference-eval.case +// - src/assignment-target-type/simple/basic/default.template +/*--- +description: IdentifierReference Identifier, Return simple. (Simple Direct assignment) +flags: [generated, noStrict] +---*/ + + +eval = 1; diff --git a/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-yield.js b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-yield.js new file mode 100644 index 0000000000..4d0efc488a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-basic-identifierreference-yield.js @@ -0,0 +1,10 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/identifierreference-yield.case +// - src/assignment-target-type/simple/basic/default.template +/*--- +description: IdentifierReference yield, Return simple. (Simple Direct assignment) +flags: [generated, noStrict] +---*/ + + +yield = 1; diff --git a/test/language/expressions/assignmenttargettype/simple-complex-callexpression-expression.js b/test/language/expressions/assignmenttargettype/simple-complex-callexpression-expression.js new file mode 100644 index 0000000000..0bf608a8e6 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-complex-callexpression-expression.js @@ -0,0 +1,18 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/callexpression-expression.case +// - src/assignment-target-type/simple/complex/default.template +/*--- +description: Static Semantics AssignmentTargetType, Return simple (Simple Direct assignment) +flags: [generated] +info: | + CallExpression [ Expression ] + Static Semantics AssignmentTargetType, Return simple + +---*/ + + +let v = 'v'; +let o = { [v]: 1, f() {} }; +let f = () => o; + +f()[v] = 1; diff --git a/test/language/expressions/assignmenttargettype/simple-complex-callexpression.identifiername.js b/test/language/expressions/assignmenttargettype/simple-complex-callexpression.identifiername.js new file mode 100644 index 0000000000..1feff5b191 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-complex-callexpression.identifiername.js @@ -0,0 +1,18 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/callexpression.identifiername.case +// - src/assignment-target-type/simple/complex/default.template +/*--- +description: Static Semantics AssignmentTargetType, Return simple (Simple Direct assignment) +flags: [generated] +info: | + CallExpression . IdentifierName + Static Semantics AssignmentTargetType, Return simple + +---*/ + + +let v = 'v'; +let o = { [v]: 1, f() {} }; +let f = () => o; + +f().IdentifierName = 1; diff --git a/test/language/expressions/assignmenttargettype/simple-complex-memberexpression-expression.js b/test/language/expressions/assignmenttargettype/simple-complex-memberexpression-expression.js new file mode 100644 index 0000000000..eb324a8742 --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-complex-memberexpression-expression.js @@ -0,0 +1,18 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/memberexpression-expression.case +// - src/assignment-target-type/simple/complex/default.template +/*--- +description: Static Semantics AssignmentTargetType, Return simple (Simple Direct assignment) +flags: [generated] +info: | + MemberExpression [ Expression ] + Static Semantics AssignmentTargetType, Return simple + +---*/ + + +let v = 'v'; +let o = { [v]: 1, f() {} }; +let f = () => o; + +o[v] = 1; diff --git a/test/language/expressions/assignmenttargettype/simple-complex-memberexpression.identifiername.js b/test/language/expressions/assignmenttargettype/simple-complex-memberexpression.identifiername.js new file mode 100644 index 0000000000..1b95694e6a --- /dev/null +++ b/test/language/expressions/assignmenttargettype/simple-complex-memberexpression.identifiername.js @@ -0,0 +1,18 @@ +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/memberexpression.identifiername.case +// - src/assignment-target-type/simple/complex/default.template +/*--- +description: Static Semantics AssignmentTargetType, Return simple (Simple Direct assignment) +flags: [generated] +info: | + MemberExpression . IdentifierName + Static Semantics AssignmentTargetType, Return simple + +---*/ + + +let v = 'v'; +let o = { [v]: 1, f() {} }; +let f = () => o; + +o.v = 1;