Debian Codegraph @

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

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