v8/test/message/fail/await-non-async.out
Shu-yu Guo 1cb0fac0a7 [top-level-await] Ship top-level await
Note that top-level await is already on-by-default in blink. This flips
the flag in V8 only for other embedders.

Bug: v8:9344
Change-Id: Ic860b22316718b353a0493799fdf95200a71acc1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2746843
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73416}
2021-03-15 23:34:34 +00:00

5 lines
256 B
Plaintext

*%(basename)s:5: SyntaxError: await is only valid in async functions and the top level bodies of modules
function f() { await Promise.resolve(); }
^^^^^
SyntaxError: await is only valid in async functions and the top level bodies of modules