Debian Codegraph @

js/src/tests/test262/language/module-code/top-level-await/new-await.js

raw
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2020 Rick Waldron. 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 cannot immediately follow new in module code
9 negative:
10 phase: parse
11 type: SyntaxError
12 flags: [module]
13 features: [top-level-await]
14 ---*/
15
16 $DONOTEVALUATE();
17
18 new await;