Debian Codegraph @

js/src/tests/test262/language/future-reserved-words/package-strict-escaped-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (c) 2012 Ecma International. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 esid: sec-identifiers-static-semantics-early-errors
8 es5id: 7.6.1-23-s
9 description: >
10 7.6 - SyntaxError expected: reserved words used as Identifier
11 Names in UTF8: packag\u0065 (package)
12 info: |
13 Identifier : IdentifierName but not ReservedWord
14
15 It is a Syntax Error if this phrase is contained in strict mode code and the
16 StringValue of IdentifierName is: "implements", "interface", "let", "package",
17 "private", "protected", "public", "static", or "yield".
18 negative:
19 phase: parse
20 type: SyntaxError
21 flags: [onlyStrict]
22 ---*/
23
24 $DONOTEVALUATE();
25
26 var packag\u0065 = 123;