Debian Codegraph @

js/src/tests/test262/language/future-reserved-words/protected-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-24-s
9 description: >
10 7.6 - SyntaxError expected: reserved words used as Identifier
11 Names in UTF8:
12 \u0070\u0072\u006f\u0074\u0065\u0063\u0074\u0065\u0064 (protected)
13 info: |
14 Identifier : IdentifierName but not ReservedWord
15
16 It is a Syntax Error if this phrase is contained in strict mode code and the
17 StringValue of IdentifierName is: "implements", "interface", "let", "package",
18 "private", "protected", "public", "static", or "yield".
19 negative:
20 phase: parse
21 type: SyntaxError
22 flags: [onlyStrict]
23 ---*/
24
25 $DONOTEVALUATE();
26
27 var \u0070\u0072\u006f\u0074\u0065\u0063\u0074\u0065\u0064 = 123;