diff options
Diffstat (limited to 'js/src/tests/test262/language/expressions/delete/identifier-strict-strict.js')
-rw-r--r-- | js/src/tests/test262/language/expressions/delete/identifier-strict-strict.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/delete/identifier-strict-strict.js b/js/src/tests/test262/language/expressions/delete/identifier-strict-strict.js new file mode 100644 index 0000000000..d84e8a4e59 --- /dev/null +++ b/js/src/tests/test262/language/expressions/delete/identifier-strict-strict.js @@ -0,0 +1,19 @@ +// |reftest| error:SyntaxError +'use strict'; +// 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 test262identifier; |