diff options
Diffstat (limited to 'js/src/tests/test262/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js')
-rw-r--r-- | js/src/tests/test262/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js b/js/src/tests/test262/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js new file mode 100644 index 0000000000..9ce49a883f --- /dev/null +++ b/js/src/tests/test262/language/expressions/assignmenttargettype/parenthesized-optionalexpression.js @@ -0,0 +1,25 @@ +// |reftest| error:SyntaxError +// This file was procedurally generated from the following sources: +// - src/assignment-target-type/optionalexpression.case +// - src/assignment-target-type/invalid/parenthesized.template +/*--- +description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) +esid: sec-grouping-operator-static-semantics-assignmenttargettype +features: [optional-chaining] +flags: [generated] +negative: + phase: parse + type: SyntaxError +info: | + ParenthesizedExpression: (Expression) + + Return AssignmentTargetType of Expression. + + OptionalExpression + Static Semantics AssignmentTargetType, Return invalid. + +---*/ + +$DONOTEVALUATE(); + +(x?.y) = 1; |