blob: ea9da4432fe6acd28f9ca3d246a9cb3bc3d161c7 [file] [log] [blame]
// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
The await keyword can't be escaped
info: |
ModuleItem:
StatementListItem[~Yield, +Await, ~Return]
...
AwaitExpression[Yield]:
await UnaryExpression[?Yield, +Await]
negative:
phase: parse
type: SyntaxError
esid: prod-ModuleItem
flags: [module]
features: [top-level-await]
---*/
$DONOTEVALUATE();
\u0061wait 0;