Debian Codegraph @

js/src/tests/test262/language/expressions/delete/identifier-strict-recursive-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (c) 2018 Mike Pennisi. All rights reserved.
4 // Copyright (c) 2021 Gus Caplan. All rights reserved.
5 // This code is governed by the BSD license found in the LICENSE file.
6 /*---
7 esid: sec-delete-operator-static-semantics-early-errors
8 description: Parsing error when operand is an IdentifierReference
9 info: |
10 It is a Syntax Error if the UnaryExpression is contained in strict mode code
11 and the derived UnaryExpression is PrimaryExpression:IdentifierReference.
12 negative:
13 phase: parse
14 type: SyntaxError
15 flags: [onlyStrict]
16 ---*/
17
18 $DONOTEVALUATE();
19
20 delete ((identifier));