const-declaring-let-split-across-two-lines.js (484B)
1 // |reftest| error:SyntaxError 2 // Copyright (C) 2015 Mozilla Corporation. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 author: Jeff Walden 7 es6id: 13.3.1.1 8 description: > 9 const: |const let| split across two lines is a static semantics early error. 10 info: | 11 Lexical declarations may not declare a binding named "let". 12 negative: 13 phase: parse 14 type: SyntaxError 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 const 20 let = "irrelevant initializer";