test262/test/language/module-code/top-level-await/no-operand.js

18 lines
322 B
JavaScript

// 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 requries an operand.
negative:
phase: parse
type: SyntaxError
flags: [module]
features: [top-level-await]
---*/
$DONOTEVALUATE();
await;