From: jianli@chromium.org Date: Tue, 23 Jun 2009 00:41:41 +0000 (+0000) Subject: 2009-06-22 Jian Li X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=fed80344d48197930d3a038a4eb778be5d966ba8 2009-06-22 Jian Li Reviewed by Dimitri Glazkov. Bug 26626: Make WorkerContextExecutionProxy::toV8Object handle exception objects. https://bugs.webkit.org/show_bug.cgi?id=26626 * bindings/v8/WorkerContextExecutionProxy.cpp: (WebCore::WorkerContextExecutionProxy::ToV8Object): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@44965 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index e3abc49..de8a040 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,14 @@ +2009-06-22 Jian Li + + Reviewed by Dimitri Glazkov. + + Bug 26626: Make WorkerContextExecutionProxy::toV8Object handle exception + objects. + https://bugs.webkit.org/show_bug.cgi?id=26626 + + * bindings/v8/WorkerContextExecutionProxy.cpp: + (WebCore::WorkerContextExecutionProxy::ToV8Object): + 2009-06-22 David Hyatt Reviewed by Sam Weinig. diff --git a/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp b/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp index 2cf043d..a8fbc0a 100644 --- a/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp +++ b/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp @@ -37,7 +37,11 @@ #include "V8Binding.h" #include "V8Proxy.h" +#include "DOMCoreException.h" #include "Event.h" +#include "EventException.h" +#include "RangeException.h" +#include "XMLHttpRequestException.h" #include "V8WorkerContextEventListener.h" #include "V8WorkerContextObjectEventListener.h" #include "Worker.h" @@ -242,6 +246,18 @@ v8::Handle WorkerContextExecutionProxy::ToV8Object(V8ClassIndex::V8Wr case V8ClassIndex::WORKERNAVIGATOR: static_cast(impl)->ref(); break; + case V8ClassIndex::DOMCOREEXCEPTION: + static_cast(impl)->ref(); + break; + case V8ClassIndex::RANGEEXCEPTION: + static_cast(impl)->ref(); + break; + case V8ClassIndex::EVENTEXCEPTION: + static_cast(impl)->ref(); + break; + case V8ClassIndex::XMLHTTPREQUESTEXCEPTION: + static_cast(impl)->ref(); + break; default: ASSERT(false); }