early-errors-await-not-simple-assignment-target.js (408B)
1 // |reftest| error:SyntaxError module 2 // Copyright 2019 Leo Balter. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: prod-AwaitExpression 7 description: > 8 await is not a simple assignment target and cannot be assigned to. 9 negative: 10 phase: parse 11 type: SyntaxError 12 flags: [module] 13 features: [top-level-await] 14 ---*/ 15 16 $DONOTEVALUATE(); 17 18 (await 1) = 1;