[Webkit-unassigned] [Bug 203478] Poor Async/Await Syntax Error Message
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 28 16:07:31 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=203478
Ross Kirsling <ross.kirsling at sony.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ross.kirsling at sony.com
--- Comment #1 from Ross Kirsling <ross.kirsling at sony.com> ---
That would be a more helpful error message indeed.
Note that the reason for the current error message is that `await` is a valid *identifier* just when we're *not* in an async function.
So this is all perfectly valid code (for web compatibility reasons):
const await = "Hello";
const x = await;
function f(await) { console.log(await); }
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191028/c3b40d2b/attachment.htm>
More information about the webkit-unassigned
mailing list