early-no-escaped-await.js (519B)
1 // |reftest| error:SyntaxError module 2 // Copyright (C) 2019 Leo Balter. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 description: > 7 The await keyword can't be escaped 8 info: | 9 ModuleItem: 10 StatementListItem[~Yield, +Await, ~Return] 11 12 ... 13 14 AwaitExpression[Yield]: 15 await UnaryExpression[?Yield, +Await] 16 negative: 17 phase: parse 18 type: SyntaxError 19 esid: prod-ModuleItem 20 flags: [module] 21 features: [top-level-await] 22 ---*/ 23 24 $DONOTEVALUATE(); 25 26 \u0061wait 0;