Summary: | Fix syntax error message for AUTOPLUSPLUS token. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mark Lam <mark.lam> | ||||||
Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ews-watchlist, keith_miller, msaboff, saam, tzagallo, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Mark Lam
2021-05-03 08:33:05 PDT
Created attachment 427563 [details]
proposed patch.
Comment on attachment 427563 [details]
proposed patch.
I'm gonna investigate why there are EWS failures.
I was wrong about AUTOPLUSPLUS not being needed. It’s needed to distinquish this: ``` statement ++ stuff ``` from this: ``` statement ++stuff ``` AUTOPLUSPLUS tells us that that there’s a `\n` there, which tells us that the ++ is a prefix for the next token, not a postfix for the last one. So, the real bug is that the SyntaxError message needs to take into account AUTOPLUSPLUS. Created attachment 427605 [details]
proposed patch.
Thanks for the review. The AS Mac failures are not related. Landed in r276942: <http://trac.webkit.org/r276942>. |