diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/bindings/v8/V8ErrorHandler.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/bindings/v8/V8ErrorHandler.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/chromium/third_party/WebKit/Source/bindings/v8/V8ErrorHandler.cpp b/chromium/third_party/WebKit/Source/bindings/v8/V8ErrorHandler.cpp index f7b9681e8d6..8f8b7c2cde5 100644 --- a/chromium/third_party/WebKit/Source/bindings/v8/V8ErrorHandler.cpp +++ b/chromium/third_party/WebKit/Source/bindings/v8/V8ErrorHandler.cpp @@ -31,16 +31,12 @@ #include "config.h" #include "bindings/v8/V8ErrorHandler.h" -#include "V8ErrorEvent.h" #include "bindings/v8/ScriptController.h" #include "bindings/v8/V8Binding.h" #include "bindings/v8/V8HiddenPropertyName.h" #include "bindings/v8/V8ScriptRunner.h" -#include "core/dom/Document.h" #include "core/dom/ErrorEvent.h" #include "core/dom/EventNames.h" -#include "core/dom/ScriptExecutionContext.h" -#include "core/page/Frame.h" namespace WebCore { @@ -77,16 +73,6 @@ v8::Local<v8::Value> V8ErrorHandler::callListenerFunction(ScriptExecutionContext return returnValue; } -// static -void V8ErrorHandler::storeExceptionOnErrorEventWrapper(ErrorEvent* event, v8::Handle<v8::Value> data, v8::Isolate* isolate) -{ - v8::Local<v8::Value> wrappedEvent = toV8(event, v8::Handle<v8::Object>(), isolate); - if (!wrappedEvent.IsEmpty()) { - ASSERT(wrappedEvent->IsObject()); - v8::Local<v8::Object>::Cast(wrappedEvent)->SetHiddenValue(V8HiddenPropertyName::error(), data); - } -} - bool V8ErrorHandler::shouldPreventDefault(v8::Local<v8::Value> returnValue) { return returnValue->IsBoolean() && returnValue->BooleanValue(); |