add test that delete early error is recursive

This commit is contained in:
devsnek 2021-07-17 09:40:29 -05:00 committed by Rick Waldron
parent bf0297c0a4
commit 2be28ba0c8
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// Copyright (c) 2018 Mike Pennisi. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-delete-operator-static-semantics-early-errors
description: Parsing error when operand is an IdentifierReference
info: |
It is a Syntax Error if the UnaryExpression is contained in strict mode code
and the derived UnaryExpression is PrimaryExpression:IdentifierReference.
negative:
phase: parse
type: SyntaxError
flags: [onlyStrict]
---*/
$DONOTEVALUATE();
delete ((identifier));