Source code

Revision control

Copy as Markdown

Other Tools

// |reftest| error:SyntaxError module
// 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;