| Index: Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| diff --git a/Source/bindings/core/v8/PrivateScriptRunner.cpp b/Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| index ff3a7bb32030cb2abad66cb4e5c4c3f7fb1538a8..a95408a8d800781fa62e13801fd61202e5db9e33 100644
|
| --- a/Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| +++ b/Source/bindings/core/v8/PrivateScriptRunner.cpp
|
| @@ -186,6 +186,13 @@ bool PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(v8::Isolate*
|
| if (name.IsEmpty() || !name->IsString())
|
| return false;
|
| String exceptionName = toCoreString(v8::Handle<v8::String>::Cast(name));
|
| + {
|
| + // FIXME: remove this.
|
| + // This is a temporal hack to show the error message.
|
| + v8::Handle<v8::Value> message = exceptionObject->Get(v8String(isolate, "message"));
|
| + String messageStr = toCoreString(v8::Handle<v8::String>::Cast(message));
|
| + printf("message: %s\n", messageStr.utf8().data());
|
| + }
|
| if (exceptionName == "DOMExceptionInPrivateScript") {
|
| v8::Handle<v8::Value> message = exceptionObject->Get(v8String(isolate, "message"));
|
| RELEASE_ASSERT(!message.IsEmpty() && message->IsString());
|
|
|