DescriptionUse V8TRYCATCH_FOR_V8STRINGRESOURCE() macro instead of toCoreStringWithUndefinedOrNullCheck()
Use V8TRYCATCH_FOR_V8STRINGRESOURCE() macro instead of toCoreStringWithUndefinedOrNullCheck()
when necessary. Namely, when an exception may be thrown, we should use the macro instead to
return early when the call to ToString() throws.
This patch also updates toCoreStringWithUndefinedOrNullCheck(v8::Handle<v8::Value>()) to
stop calling ToString(). This method can never throw and is thus now safe to use if the
caller wants to convert to WTF String only if the v8::Value contains a v8::String. This
utility method is used in the inspector code.
R=haraken, pfeldman
BUG=327338
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163873
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove toCoreString(v8::Handle<v8::Value> value) #
Total comments: 10
Patch Set 3 : Take pfeldman's feedback into consideration #
Total comments: 5
Patch Set 4 : Take Yury's feedback into consideration #Patch Set 5 : Take Yury's feedback into consideration #
Messages
Total messages: 14 (0 generated)
|