mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add logical-assignment-operators feature
This commit is contained in:
parent
fdf4675da9
commit
78dbc401b1
features.txt
test/language/expressions/logical-assignment
lgcl-and-assignment-operator-bigint.jslgcl-and-assignment-operator-lhs-before-rhs.jslgcl-and-assignment-operator-no-set-put.jslgcl-and-assignment-operator-no-set.jslgcl-and-assignment-operator-non-extensible.jslgcl-and-assignment-operator-non-simple-lhs.jslgcl-and-assignment-operator-non-writeable-put.jslgcl-and-assignment-operator-non-writeable.jslgcl-and-assignment-operator-unresolved-lhs.jslgcl-and-assignment-operator-unresolved-rhs-put.jslgcl-and-assignment-operator-unresolved-rhs.jslgcl-and-assignment-operator.jslgcl-nullish-assignment-operator-bigint.jslgcl-nullish-assignment-operator-lhs-before-rhs.jslgcl-nullish-assignment-operator-no-set-put.jslgcl-nullish-assignment-operator-no-set.jslgcl-nullish-assignment-operator-non-extensible.jslgcl-nullish-assignment-operator-non-simple-lhs.jslgcl-nullish-assignment-operator-non-writeable-put.jslgcl-nullish-assignment-operator-non-writeable.jslgcl-nullish-assignment-operator-unresolved-lhs.jslgcl-nullish-assignment-operator-unresolved-rhs-put.jslgcl-nullish-assignment-operator-unresolved-rhs.jslgcl-nullish-assignment-operator.jslgcl-or-assignment-operator-bigint.jslgcl-or-assignment-operator-lhs-before-rhs.jslgcl-or-assignment-operator-no-set-put.jslgcl-or-assignment-operator-no-set.jslgcl-or-assignment-operator-non-extensible.jslgcl-or-assignment-operator-non-simple-lhs.jslgcl-or-assignment-operator-non-writeable-put.jslgcl-or-assignment-operator-non-writeable.jslgcl-or-assignment-operator-unresolved-lhs.jslgcl-or-assignment-operator-unresolved-rhs-put.jslgcl-or-assignment-operator-unresolved-rhs.jslgcl-or-assignment-operator.js
@ -166,6 +166,10 @@ String.prototype.replaceAll
|
||||
# https://github.com/tc39/proposal-for-in-order
|
||||
for-in-order
|
||||
|
||||
# Logical Assignment Operators
|
||||
# https://github.com/tc39/proposal-logical-assignment
|
||||
logical-assignment-operators
|
||||
|
||||
## Standard language features
|
||||
#
|
||||
# Language features that have been included in a published version of the
|
||||
|
@ -4,7 +4,7 @@
|
||||
/*---
|
||||
esid: sec-assignment-operators-runtime-semantics-evaluation
|
||||
description: Logical And Assignment Operator
|
||||
features: [BigInt]
|
||||
features: [BigInt, logical-assignment-operators]
|
||||
info: |
|
||||
AssignmentExpression:
|
||||
LeftHandSideExpression &&= AssignmentExpression
|
||||
|
@ -5,6 +5,7 @@
|
||||
esid: sec-assignment-operators-runtime-semantics-evaluation
|
||||
description: >
|
||||
The LeftHandSideExpression is evaluated before the AssignmentExpression.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(&&=) is a reference to a data property with the
|
||||
attribute value {[[Set]]:undefined} and PutValue step is reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(&&=) is a reference to a data property with the
|
||||
attribute value {[[Set]]:undefined} and PutValue step is not reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(&&=) is a reference to a non-existent property of an
|
||||
object whose [[Extensible]] internal property is false.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -9,6 +9,7 @@ description: >
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(&&=) is a reference to a data property with the
|
||||
attribute value {[[Writable]]:false} and PutValue step is reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(&&=) is a reference to a data property with the
|
||||
attribute value {[[Writable]]:false} and PutValue step is not reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is thrown if the LeftHandSideExpression of a Logical
|
||||
Assignment operator(&&=) evaluates to an unresolvable reference
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is thrown if the AssignmentExpression of a Logical
|
||||
Assignment operator(&&=) evaluates to an unresolvable reference and the
|
||||
AssignmentExpression is evaluated.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is not thrown if the AssignmentExpression of a Logical
|
||||
Assignment operator(&&=) evaluates to an unresolvable reference and the
|
||||
AssignmentExpression is not evaluated.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -16,6 +16,7 @@ info: |
|
||||
6. Let rval be ? GetValue(rref).
|
||||
7. Perform ? PutValue(lref, rval).
|
||||
8. Return rval.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/*---
|
||||
esid: sec-assignment-operators-runtime-semantics-evaluation
|
||||
description: Logical Nullish Assignment Operator
|
||||
features: [BigInt]
|
||||
features: [BigInt, logical-assignment-operators]
|
||||
info: |
|
||||
AssignmentExpression:
|
||||
LeftHandSideExpression ??= AssignmentExpression
|
||||
|
@ -5,6 +5,7 @@
|
||||
esid: sec-assignment-operators-runtime-semantics-evaluation
|
||||
description: >
|
||||
The LeftHandSideExpression is evaluated before the AssignmentExpression.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(??=) is a reference to a data property with the
|
||||
attribute value {[[Set]]:undefined} and PutValue step is reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(??=) is a reference to a data property with the
|
||||
attribute value {[[Set]]:undefined} and PutValue step is not reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(??=) is a reference to a non-existent property
|
||||
of an object whose [[Extensible]] internal property is false.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -9,6 +9,7 @@ description: >
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
1
test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-non-writeable-put.js
1
test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-non-writeable-put.js
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(??=) is a reference to a data property with the
|
||||
attribute value {[[Writable]]:false} and PutValue step is reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(??=) is a reference to a data property with the
|
||||
attribute value {[[Writable]]:false} and PutValue step is not reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is thrown if the LeftHandSideExpression of a Logical
|
||||
Assignment operator(??=) evaluates to an unresolvable reference
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
1
test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-unresolved-rhs-put.js
1
test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-unresolved-rhs-put.js
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is thrown if the AssignmentExpression of a Logical
|
||||
Assignment operator(??=) evaluates to an unresolvable reference and the
|
||||
AssignmentExpression is evaluated.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is not thrown if the AssignmentExpression of a Logical
|
||||
Assignment operator(??=) evaluates to an unresolvable reference and the
|
||||
AssignmentExpression is not evaluated.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -15,6 +15,7 @@ info: |
|
||||
5. Let rval be ? GetValue(rref).
|
||||
6. Perform ? PutValue(lref, rval).
|
||||
7. Return rval.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/*---
|
||||
esid: sec-assignment-operators-runtime-semantics-evaluation
|
||||
description: Logical Or Assignment Operator
|
||||
features: [BigInt]
|
||||
features: [BigInt, logical-assignment-operators]
|
||||
info: |
|
||||
AssignmentExpression:
|
||||
LeftHandSideExpression ||= AssignmentExpression
|
||||
|
@ -5,6 +5,7 @@
|
||||
esid: sec-assignment-operators-runtime-semantics-evaluation
|
||||
description: >
|
||||
The LeftHandSideExpression is evaluated before the AssignmentExpression.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(||=) is a reference to a data property with the
|
||||
attribute value {[[Set]]:undefined} and PutValue step is reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(||=) is a reference to a data property with the
|
||||
attribute value {[[Set]]:undefined} and PutValue step is not reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(||=) is a reference to a non-existent property
|
||||
of an object whose [[Extensible]] internal property is false.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -9,6 +9,7 @@ description: >
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(||=) is a reference to a data property with the
|
||||
attribute value {[[Writable]]:false} and PutValue step is reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -8,6 +8,7 @@ description: >
|
||||
Assignment operator(||=) is a reference to a data property with the
|
||||
attribute value {[[Writable]]:false} and PutValue step is not reached.
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is thrown if the LeftHandSideExpression of a Logical
|
||||
Assignment operator(||=) evaluates to an unresolvable reference
|
||||
flags: [onlyStrict]
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is thrown if the AssignmentExpression of a Logical
|
||||
Assignment operator(||=) evaluates to an unresolvable reference and the
|
||||
AssignmentExpression is evaluated.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -7,6 +7,7 @@ description: >
|
||||
ReferenceError is not thrown if the AssignmentExpression of a Logical
|
||||
Assignment operator(||=) evaluates to an unresolvable reference and the
|
||||
AssignmentExpression is not evaluated.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
@ -16,6 +16,7 @@ info: |
|
||||
6. Let rval be ? GetValue(rref).
|
||||
7. Perform ? PutValue(lref, rval).
|
||||
8. Return rval.
|
||||
features: [logical-assignment-operators]
|
||||
|
||||
---*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user