From 2be28ba0c8f1849503bb6c1280f0fabe1a68bbab Mon Sep 17 00:00:00 2001 From: devsnek Date: Sat, 17 Jul 2021 09:40:29 -0500 Subject: [PATCH] add test that delete early error is recursive --- .../delete/identifier-strict-recursive.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/language/expressions/delete/identifier-strict-recursive.js diff --git a/test/language/expressions/delete/identifier-strict-recursive.js b/test/language/expressions/delete/identifier-strict-recursive.js new file mode 100644 index 0000000000..d4021cdd77 --- /dev/null +++ b/test/language/expressions/delete/identifier-strict-recursive.js @@ -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));