test262/test/language/expressions/postfix-decrement/this.js

28 lines
699 B
JavaScript
Raw Normal View History

2023-05-17 22:29:16 +02:00
// Copyright (C) 2023 Veera Sivarajan. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-update-expressions-static-semantics-early-errors
description: >
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple. (this)
info: |
sec-static-semantics-assignmenttargettype
2023-05-16 23:07:38 +02:00
PrimaryExpression: this
2023-05-16 23:07:38 +02:00
Return invalid.
sec-update-expressions-static-semantics-early-errors
2023-05-16 23:07:38 +02:00
UpdateExpression: LeftHandSideExpression --
2023-05-16 23:07:38 +02:00
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is not simple.
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
this--;