Description[DevTools] Evaluate expression like { ... } as Object Literal
If user evaluate in console expression like {a:1, b:2} then console will report SyntaxError exception because this expression is interpreted as block scope declaration with incorrect label.
With this CL console wrap all expressions that begins with { and ends with }.
BUG=499864
R=paulirish@chromium.org, pfeldman@chromium.org
Committed: https://crrev.com/4fd348fdb9c0b3842829acdfb2b82c86dacd8e0a
Cr-Commit-Position: refs/heads/master@{#364270}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #
Messages
Total messages: 17 (6 generated)
|