protected.js (565B)
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 "protected" token can be used as identifier in non-strict code 7 es5id: 7.6.1.2_A1.23ns 8 description: Checking if execution of "protected=1" succeeds in non-strict code 9 flags: [noStrict] 10 ---*/ 11 12 var protected = 1; 13 var prot\u0065cted = 2; 14 15 { let protected = 3; } 16 { let prot\u0065cted = 4; } 17 18 { const protected = 5; } 19 { const prot\u0065cted = 6; } 20 21 reportCompare(0, 0);