escaped-let.js (1037B)
1 // Copyright (C) 2017 André Bargull. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-grammar-notation 6 description: > 7 The `let` contextual keyword must not contain Unicode escape sequences. 8 info: | 9 Terminal symbols are shown 10 in fixed width font, both in the productions of the grammars and throughout this 11 specification whenever the text directly refers to such a terminal symbol. These 12 are to appear in a script exactly as written. All terminal symbol code points 13 specified in this way are to be understood as the appropriate Unicode code points 14 from the Basic Latin range, as opposed to any similar-looking code points from 15 other Unicode ranges. 16 flags: [noStrict] 17 ---*/ 18 19 // Add a global property "let", so we won't get a runtime reference error below. 20 this.let = 0; 21 22 l\u0065t // ASI 23 a; 24 25 // If the parser treated the previous escaped "let" as a lexical declaration, 26 // this variable declaration will result an early syntax error. 27 var a; 28 29 reportCompare(0, 0);