| Index: Source/bindings/v8/V8StringResource.h
|
| diff --git a/Source/bindings/v8/V8StringResource.h b/Source/bindings/v8/V8StringResource.h
|
| index feb63a990952c79ad04828cd77fe693c67edb140..9869cc8f2987ae0d3aa3bf68b3e07df5a84e0bd7 100644
|
| --- a/Source/bindings/v8/V8StringResource.h
|
| +++ b/Source/bindings/v8/V8StringResource.h
|
| @@ -199,14 +199,9 @@ private:
|
| }
|
|
|
| m_mode = DoNotExternalize;
|
| - v8::TryCatch block;
|
| m_v8Object = m_v8Object->ToString();
|
| - // Handle the case where an exception is thrown as part of invoking toString on the object.
|
| - if (block.HasCaught()) {
|
| - block.ReThrow();
|
| - return false;
|
| - }
|
| - return true;
|
| + // Returns false when an exception is thrown from toString.
|
| + return !m_v8Object.IsEmpty();
|
| }
|
|
|
| void setString(const String& string)
|
|
|