blob: b991c668d7a061eda61025112eed1bea4c2df937 [file] [log] [blame]
// Copyright 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: prod-AwaitExpression
description: >
await is not a simple assignment target and cannot be assigned to.
negative:
phase: parse
type: SyntaxError
flags: [module]
features: [top-level-await]
---*/
$DONOTEVALUATE();
(await 1) = 1;