Debian Codegraph @

js/src/tests/test262/language/future-reserved-words/implements.js

raw
1 // Copyright 2011 the Sputnik authors. 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 info: The "implements" token can be used as identifier in non-strict code
7 es5id: 7.6.1.2_A1.15ns
8 description: Checking if execution of "implements=1" succeeds in non-strict code
9 flags: [noStrict]
10 ---*/
11
12 var implements = 1;
13 var impl\u0065ments = 2;
14
15 { let implements = 3; }
16 { let impl\u0065ments = 4; }
17
18 { const implements = 5; }
19 { const impl\u0065ments = 6; }
20
21 reportCompare(0, 0);