DescriptionDevTools: improve javascript formatter to support "return" properties.
The uglifier tokenizer, which is used under the hood in javascript
formatter, is not clever enough to figure out that the "return" word
in "a.return" is not a "return" statement, but identifier.
This patch works around this issue via verifying the token value after
regex to be a valid identifier.
BUG=218470
R=vsevik, apavlov
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180467
Patch Set 1 #Patch Set 2 : address @vsevik comments #
Messages
Total messages: 11 (0 generated)
|