mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
AssignmentTargetType cases. Fixes gh-1268
This commit is contained in:
parent
67382a1e8e
commit
8b7adcdf00
src/assignment-target-type
additiveexpression-minus-multiplicativeexpression-0.caseadditiveexpression-minus-multiplicativeexpression-1.caseadditiveexpression-minus-multiplicativeexpression-2.caseadditiveexpression-plus-multiplicativeexpression-0.caseadditiveexpression-plus-multiplicativeexpression-1.caseadditiveexpression-plus-multiplicativeexpression-2.casearrowfunction-0.casearrowfunction-1.casearrowfunction-2.casearrowfunction-3.casearrowfunction-4.casearrowfunction-5.casearrowfunction-6.caseasyncarrowfunction-0.caseasyncarrowfunction-1.caseasyncarrowfunction-2.caseasyncarrowfunction-3.caseasyncarrowfunction-4.caseasyncarrowfunction-5.caseasyncarrowfunction-6.casebitwiseandexpression-bitwise-and-equalityexpression-0.casebitwiseandexpression-bitwise-and-equalityexpression-1.casebitwiseandexpression-bitwise-and-equalityexpression-2.casebitwiseorexpression-bitwise-or-bitwisexorexpression-0.casebitwiseorexpression-bitwise-or-bitwisexorexpression-1.casebitwiseorexpression-bitwise-or-bitwisexorexpression-2.casebitwisexorexpression-bitwise-xor-bitwiseandexpression-0.casebitwisexorexpression-bitwise-xor-bitwiseandexpression-1.casebitwisexorexpression-bitwise-xor-bitwiseandexpression-2.casecallexpression-arguments.casecallexpression-expression.casecallexpression-templateliteral.casecallexpression.identifiername.casecoalesceexpressionhead-coalesce-bitwiseorexpression-0.casecoalesceexpressionhead-coalesce-bitwiseorexpression-1.casecoalesceexpressionhead-coalesce-bitwiseorexpression-2.caseequalityexpression-abstract-equal-relationalexpression-0.caseequalityexpression-abstract-equal-relationalexpression-1.caseequalityexpression-abstract-equal-relationalexpression-2.caseequalityexpression-abstract-not-equal-relationalexpression-0.caseequalityexpression-abstract-not-equal-relationalexpression-1.caseequalityexpression-abstract-not-equal-relationalexpression-2.caseequalityexpression-strict-equal-relationalexpression-0.caseequalityexpression-strict-equal-relationalexpression-1.caseequalityexpression-strict-equal-relationalexpression-2.caseequalityexpression-strict-not-equal-relationalexpression-0.caseequalityexpression-strict-not-equal-relationalexpression-1.caseequalityexpression-strict-not-equal-relationalexpression-2.caseexpression-comma-assignmentexpression-0.caseexpression-comma-assignmentexpression-1.caseexpression-comma-assignmentexpression-2.caseidentifierreference-arguments-strict.caseidentifierreference-arguments.caseidentifierreference-await.caseidentifierreference-eval-strict.caseidentifierreference-eval.caseidentifierreference-yield.caseimport.meta.caseimportcall.case
invalid
lefthandsideexpression-assignment-assignmentexpression-0.caselefthandsideexpression-assignment-assignmentexpression-1.caselefthandsideexpression-assignment-assignmentexpression-2.caselefthandsideexpression-coalesce-assignment-assignmentexpression-0.caselefthandsideexpression-coalesce-assignment-assignmentexpression-1.caselefthandsideexpression-coalesce-assignment-assignmentexpression-2.caselefthandsideexpression-logical-and-assignment-assignmentexpression-0.caselefthandsideexpression-logical-and-assignment-assignmentexpression-1.caselefthandsideexpression-logical-and-assignment-assignmentexpression-2.caselefthandsideexpression-logical-or-assignment-assignmentexpression-0.caselefthandsideexpression-logical-or-assignment-assignmentexpression-1.caselefthandsideexpression-logical-or-assignment-assignmentexpression-2.caselefthandsideexpression-minus-minus.caselefthandsideexpression-plus-plus.caselogicalandexpression-logical-and-bitwiseorexpression-0.caselogicalandexpression-logical-and-bitwiseorexpression-1.caselogicalandexpression-logical-and-bitwiseorexpression-2.caselogicalorexpression-logical-or-logicalandexpression-0.caselogicalorexpression-logical-or-logicalandexpression-1.caselogicalorexpression-logical-or-logicalandexpression-2.casememberexpression-expression.casememberexpression-templateliteral.casememberexpression.identifiername.caseminus-minus-unaryexpression.casemultiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.casemultiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.casemultiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.casemultiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.casemultiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.casemultiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.casenew-memberexpression-arguments.casenew-newexpression.caseoptionalexpression.caseplus-plus-unaryexpression.caseprimaryexpression-asyncfunctionexpression.caseprimaryexpression-asyncgeneratorexpression.caseprimaryexpression-classexpression.caseprimaryexpression-functionexpression.case@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-additive-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AdditiveExpression - MultiplicativeExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x - y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-additive-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AdditiveExpression - MultiplicativeExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 - 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-additive-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AdditiveExpression - MultiplicativeExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true - false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-additive-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AdditiveExpression + MultiplicativeExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x + y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-additive-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AdditiveExpression + MultiplicativeExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 + 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-additive-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AdditiveExpression + MultiplicativeExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true + false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/arrowfunction-0.case
Normal file
22
src/assignment-target-type/arrowfunction-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
() => {}
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/arrowfunction-1.case
Normal file
22
src/assignment-target-type/arrowfunction-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
() => ({})
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/arrowfunction-2.case
Normal file
22
src/assignment-target-type/arrowfunction-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x => x)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/arrowfunction-3.case
Normal file
22
src/assignment-target-type/arrowfunction-3.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
((x) => x)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/arrowfunction-4.case
Normal file
22
src/assignment-target-type/arrowfunction-4.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(() => 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/arrowfunction-5.case
Normal file
22
src/assignment-target-type/arrowfunction-5.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(() => true)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/arrowfunction-6.case
Normal file
22
src/assignment-target-type/arrowfunction-6.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(() => 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/asyncarrowfunction-0.case
Normal file
22
src/assignment-target-type/asyncarrowfunction-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AsyncArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
async () => {}
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/asyncarrowfunction-1.case
Normal file
22
src/assignment-target-type/asyncarrowfunction-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AsyncArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
async () => ({})
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/asyncarrowfunction-2.case
Normal file
22
src/assignment-target-type/asyncarrowfunction-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AsyncArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(async x => x)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/asyncarrowfunction-3.case
Normal file
22
src/assignment-target-type/asyncarrowfunction-3.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AsyncArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(async (x) => x)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/asyncarrowfunction-4.case
Normal file
22
src/assignment-target-type/asyncarrowfunction-4.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AsyncArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(async () => 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/asyncarrowfunction-5.case
Normal file
22
src/assignment-target-type/asyncarrowfunction-5.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AsyncArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(async () => true)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/asyncarrowfunction-6.case
Normal file
22
src/assignment-target-type/asyncarrowfunction-6.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
AsyncArrowFunction
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(async () => 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-0.case
Normal file
22
src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseANDExpression: BitwiseANDExpression & EqualityExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x & y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-1.case
Normal file
22
src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseANDExpression: BitwiseANDExpression & EqualityExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 & 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-2.case
Normal file
22
src/assignment-target-type/bitwiseandexpression-bitwise-and-equalityexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseANDExpression: BitwiseANDExpression & EqualityExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true & false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-0.case
Normal file
22
src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x | y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-1.case
Normal file
22
src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 | 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-2.case
Normal file
22
src/assignment-target-type/bitwiseorexpression-bitwise-or-bitwisexorexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseORExpression: BitwiseORExpression | BitwiseXORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true | false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.case
Normal file
22
src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x ^ y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.case
Normal file
22
src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 ^ 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.case
Normal file
22
src/assignment-target-type/bitwisexorexpression-bitwise-xor-bitwiseandexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-bitwise-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
BitwiseXORExpression: BitwiseXORExpression ^ BitwiseANDExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true ^ false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/callexpression-arguments.case
Normal file
22
src/assignment-target-type/callexpression-arguments.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
CallExpression Arguments
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
f()
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
19
src/assignment-target-type/callexpression-expression.case
Normal file
19
src/assignment-target-type/callexpression-expression.case
Normal file
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
info: |
|
||||
CallExpression [ Expression ]
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
template: simple/complex
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
f()[v]
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
CallExpression TemplateLiteral
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
f()``
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
info: |
|
||||
CallExpression . IdentifierName
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
template: simple/complex
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
f().IdentifierName
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-0.case
Normal file
22
src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x ?? y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-1.case
Normal file
22
src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 ?? 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-2.case
Normal file
22
src/assignment-target-type/coalesceexpressionhead-coalesce-bitwiseorexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
CoalesceExpression: CoalesceExpressionHead ?? BitwiseORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true ?? false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-0.case
Normal file
22
src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression == RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x == y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-1.case
Normal file
22
src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression == RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 == 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-2.case
Normal file
22
src/assignment-target-type/equalityexpression-abstract-equal-relationalexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression == RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true == false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-0.case
Normal file
22
src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression != RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x != y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-1.case
Normal file
22
src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression != RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 != 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-2.case
Normal file
22
src/assignment-target-type/equalityexpression-abstract-not-equal-relationalexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression != RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true != false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-0.case
Normal file
22
src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression === RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x == y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-1.case
Normal file
22
src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression === RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 == 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-2.case
Normal file
22
src/assignment-target-type/equalityexpression-strict-equal-relationalexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression === RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true == false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-0.case
Normal file
22
src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression !== RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x !== y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-1.case
Normal file
22
src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression !== RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 !== 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-2.case
Normal file
22
src/assignment-target-type/equalityexpression-strict-not-equal-relationalexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-equality-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
EqualityExpression !== RelationalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true !== false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-comma-operator-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
Expression: Expression , AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x, y = z)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-comma-operator-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
Expression: Expression , AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x, y = 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-comma-operator-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
Expression: Expression , AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x, y = true)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,20 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-identifiers-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return invalid.
|
||||
template: invalid
|
||||
flags: [onlyStrict]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
arguments
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,13 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-identifiers-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
IdentifierReference Identifier, Return simple.
|
||||
template: simple/basic
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
arguments
|
14
src/assignment-target-type/identifierreference-await.case
Normal file
14
src/assignment-target-type/identifierreference-await.case
Normal file
@ -0,0 +1,14 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-identifiers-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
IdentifierReference await Return simple.
|
||||
template: simple/basic
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
var await = 0;
|
||||
//- assignmenttarget
|
||||
await
|
@ -0,0 +1,20 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-identifiers-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return invalid.
|
||||
flags: [onlyStrict]
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
eval
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
13
src/assignment-target-type/identifierreference-eval.case
Normal file
13
src/assignment-target-type/identifierreference-eval.case
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-identifiers-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
IdentifierReference Identifier, Return simple.
|
||||
template: simple/basic
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
eval
|
13
src/assignment-target-type/identifierreference-yield.case
Normal file
13
src/assignment-target-type/identifierreference-yield.case
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-identifiers-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
IdentifierReference yield, Return simple.
|
||||
template: simple/basic
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
yield
|
22
src/assignment-target-type/import.meta.case
Normal file
22
src/assignment-target-type/import.meta.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
import.meta
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
import.meta
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
23
src/assignment-target-type/importcall.case
Normal file
23
src/assignment-target-type/importcall.case
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
ImportCall
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
flags: [module]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
import()
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
15
src/assignment-target-type/invalid/direct.template
Normal file
15
src/assignment-target-type/invalid/direct.template
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/assignmenttargettype/direct-
|
||||
name: Direct assignment
|
||||
info: |
|
||||
Direct assignment
|
||||
---*/
|
||||
$DONOTEVALUATE();
|
||||
|
||||
function _() {
|
||||
/*{ assignmenttarget }*/ /*{ operator }*/ /*{ value }*/;
|
||||
}
|
||||
|
15
src/assignment-target-type/invalid/iteration/direct.template
Normal file
15
src/assignment-target-type/invalid/iteration/direct.template
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/assignmenttargettype/iteration-direct-
|
||||
name: Direct assignment
|
||||
info: |
|
||||
Direct assignment
|
||||
---*/
|
||||
$DONOTEVALUATE();
|
||||
|
||||
function _() {
|
||||
for (/*{ assignmenttarget }*/ /*{ operator }*/ /*{ value }*/) {}
|
||||
}
|
||||
|
18
src/assignment-target-type/invalid/parenthesized.template
Normal file
18
src/assignment-target-type/invalid/parenthesized.template
Normal file
@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
path: language/expressions/assignmenttargettype/parenthesized-
|
||||
name: ParenthesizedExpression
|
||||
esid: sec-grouping-operator-static-semantics-assignmenttargettype
|
||||
info: |
|
||||
ParenthesizedExpression: (Expression)
|
||||
|
||||
Return AssignmentTargetType of Expression.
|
||||
---*/
|
||||
$DONOTEVALUATE();
|
||||
|
||||
function _() {
|
||||
(/*{ assignmenttarget }*/) /*{ operator }*/ /*{ value }*/;
|
||||
}
|
||||
|
22
src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-0.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
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.
|
||||
info: |
|
||||
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.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x = y)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-1.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
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.
|
||||
info: |
|
||||
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.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x = 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-2.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-assignment-assignmentexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
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.
|
||||
info: |
|
||||
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.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x = true)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-0.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression ??= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x ??= y)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-1.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression ??= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x ??= 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-2.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-coalesce-assignment-assignmentexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression ??= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x ??= true)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-0.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression &&= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x &&= y)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-1.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression &&= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x &&= 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-2.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-logical-and-assignment-assignmentexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression &&= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x &&= true)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-0.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression ||= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x ||= y)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-1.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression ||= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x ||= 1)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-2.case
Normal file
22
src/assignment-target-type/lefthandsideexpression-logical-or-assignment-assignmentexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-assignment-operators-static-semantics-early-errors
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LeftHandSideExpression ||= AssignmentExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
(x ||= true)
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-update-expressions-static-semantics-early-errors
|
||||
desc: >
|
||||
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
|
||||
info: |
|
||||
UpdateExpression: LeftHandSideExpression--
|
||||
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x--
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-update-expressions-static-semantics-early-errors
|
||||
desc: >
|
||||
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
|
||||
info: |
|
||||
UpdateExpression: LeftHandSideExpression ++
|
||||
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x++
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-0.case
Normal file
22
src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LogicalANDExpression: LogicalANDExpression && BitwiseORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x && y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-1.case
Normal file
22
src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LogicalANDExpression: LogicalANDExpression && BitwiseORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 && 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-2.case
Normal file
22
src/assignment-target-type/logicalandexpression-logical-and-bitwiseorexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LogicalANDExpression: LogicalANDExpression && BitwiseORExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true && false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-0.case
Normal file
22
src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LogicalORExpression: LogicalORExpression || LogicalANDExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x || y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-1.case
Normal file
22
src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LogicalORExpression: LogicalORExpression || LogicalANDExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 || 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-2.case
Normal file
22
src/assignment-target-type/logicalorexpression-logical-or-logicalandexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-binary-logical-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
LogicalORExpression: LogicalORExpression || LogicalANDExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true || false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
19
src/assignment-target-type/memberexpression-expression.case
Normal file
19
src/assignment-target-type/memberexpression-expression.case
Normal file
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
info: |
|
||||
MemberExpression [ Expression ]
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
template: simple/complex
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
o[v]
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
MemberExpression TemplateLiteral
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
o.f()``
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
info: |
|
||||
MemberExpression . IdentifierName
|
||||
Static Semantics AssignmentTargetType, Return simple
|
||||
template: simple/complex
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
o.v
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/minus-minus-unaryexpression.case
Normal file
22
src/assignment-target-type/minus-minus-unaryexpression.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-update-expressions-static-semantics-early-errors
|
||||
desc: >
|
||||
It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple.
|
||||
info: |
|
||||
UpdateExpression: --UnaryExpression
|
||||
It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
--x
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.case
Normal file
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-0.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-multiplicative-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x * y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.case
Normal file
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-1.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-multiplicative-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 * 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.case
Normal file
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-2.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-multiplicative-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true * false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.case
Normal file
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-3.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-multiplicative-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x / y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.case
Normal file
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-4.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-multiplicative-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
1 / 2
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.case
Normal file
22
src/assignment-target-type/multiplicativeexpression-multiplicativeoperator-exponentiationexpression-5.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-multiplicative-operators-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
true / false
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
new MemberExpression Arguments
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
new f()
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/new-newexpression.case
Normal file
22
src/assignment-target-type/new-newexpression.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
new NewExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
new f
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
23
src/assignment-target-type/optionalexpression.case
Normal file
23
src/assignment-target-type/optionalexpression.case
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-static-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
info: |
|
||||
OptionalExpression
|
||||
Static Semantics AssignmentTargetType, Return invalid.
|
||||
template: invalid
|
||||
features: [optional-chaining]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
x?.y
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
22
src/assignment-target-type/plus-plus-unaryexpression.case
Normal file
22
src/assignment-target-type/plus-plus-unaryexpression.case
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-update-expressions-static-semantics-early-errors
|
||||
desc: >
|
||||
It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple.
|
||||
info: |
|
||||
UpdateExpression: ++UnaryExpression
|
||||
It is an early Syntax Error if AssignmentTargetType of UnaryExpression is not simple.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
++x
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
PrimaryExpression AsyncFunctionExpression; Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
async function () {}
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
PrimaryExpression AsyncGeneratorExpression; Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
async function () {}
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
PrimaryExpression ClassExpression; Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
class {}
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
@ -0,0 +1,19 @@
|
||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-semantics-static-semantics-assignmenttargettype
|
||||
desc: >
|
||||
PrimaryExpression FunctionExpression, Return invalid.
|
||||
template: invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
//- assignmenttarget
|
||||
function() {}
|
||||
//- operator
|
||||
=
|
||||
//- value
|
||||
1
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user