multi-header.js (614B)
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')||true) error:SyntaxError module -- foo bar baz 2 // Copyright (C) 2017 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 <jwalden+code@mit.edu> 7 esid: sec-let-and-const-declarations 8 description: > 9 Outside AsyncFunction, |await| is a perfectly cromulent LexicalDeclaration 10 variable name. Therefore ASI doesn't apply, and so the |0| where a |=| was 11 expected is a syntax error. 12 negative: 13 phase: early 14 type: SyntaxError 15 ---*/ 16 17 function f() { 18 let 19 await 0; 20 }