[Webkit-unassigned] [Bug 165681] Web Inspector: Console could be made useful for very simple await expressions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 9 16:36:01 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=165681

--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> ---
> >     Sample Detection:
> > 
> >         1. Input fail to parse normally.
> >         2. Input succeed parsing if wrapped in "(async function() {" + input
> > + "})"
> 
> Are there conflicts? Could other syntax errors aside from `await` be made
> whole? If so we might need to sniff for the actual `await` keyword.

Yes, if the user typed other keywords only valid in functions, such as `return`:

    (c) return 10

So our verification of (2) would need to be smart about this. Basically we should verify the AST tree contains what we expect a single await expression (optionally wrapped in a single assignment expression) and not a return statement or something else.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161210/bc7a38fd/attachment.html>


More information about the webkit-unassigned mailing list