AssignmentTargetType cases. Fixes gh-1268

This commit is contained in:
Rick Waldron 2020-09-15 10:58:49 -04:00
parent 67382a1e8e
commit 8b7adcdf00
165 changed files with 3504 additions and 0 deletions

View 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-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

View 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-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

View 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-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

View 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-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

View 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-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

View 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-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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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 TemplateLiteral
Static Semantics AssignmentTargetType, Return invalid.
template: invalid
negative:
phase: parse
type: SyntaxError
---*/
//- assignmenttarget
f()``
//- operator
=
//- value
1

View 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 . IdentifierName
Static Semantics AssignmentTargetType, Return simple
template: simple/complex
---*/
//- assignmenttarget
f().IdentifierName
//- operator
=
//- value
1

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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-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

View 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-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

View 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-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

View File

@ -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

View 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
arguments

View 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

View File

@ -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

View 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

View 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

View 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

View 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

View 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 }*/;
}

View 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 }*/) {}
}

View 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 }*/;
}

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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 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

View 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 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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: |
MemberExpression TemplateLiteral
Static Semantics AssignmentTargetType, Return invalid.
template: invalid
negative:
phase: parse
type: SyntaxError
---*/
//- assignmenttarget
o.f()``
//- operator
=
//- value
1

View 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 . IdentifierName
Static Semantics AssignmentTargetType, Return simple
template: simple/complex
---*/
//- assignmenttarget
o.v
//- operator
=
//- value
1

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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 MemberExpression Arguments
Static Semantics AssignmentTargetType, Return invalid.
template: invalid
negative:
phase: parse
type: SyntaxError
---*/
//- assignmenttarget
new f()
//- operator
=
//- value
1

View 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

View 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

View 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

View 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-semantics-static-semantics-assignmenttargettype
desc: >
PrimaryExpression AsyncFunctionExpression; Return invalid.
template: invalid
negative:
phase: parse
type: SyntaxError
---*/
//- assignmenttarget
async function () {}
//- operator
=
//- value
1

View 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-semantics-static-semantics-assignmenttargettype
desc: >
PrimaryExpression AsyncGeneratorExpression; Return invalid.
template: invalid
negative:
phase: parse
type: SyntaxError
---*/
//- assignmenttarget
async function () {}
//- operator
=
//- value
1

View 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-semantics-static-semantics-assignmenttargettype
desc: >
PrimaryExpression ClassExpression; Return invalid.
template: invalid
negative:
phase: parse
type: SyntaxError
---*/
//- assignmenttarget
class {}
//- operator
=
//- value
1

View 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-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