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