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