DescriptionDevTools: Do not crash or hang on console.log()
Now we try to build a string representation of a V8 value without causing side
effects. In 99% cases this will be the same result as before, but we won't crash
or hang any more in 99% reported cases.
The crash still possible if redefined, for example, function.toString().
Would have been ideal if V8 also exposed FunctionProtoToString, RegExpProtoToString and etc.
We use V8's ObjectProtoToString on almost all Objects and mimic V8's ArrayToString on small
arrays. For other types we call ToString.
BUG=391475
R=yurys
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178449
Patch Set 1 : #
Total comments: 4
Patch Set 2 : addressed #Patch Set 3 : compile fix #Messages
Total messages: 19 (0 generated)
|