[V8] Run-time exception in onmessage handler is not forwarded to the
authorjianli@chromium.org <jianli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Sep 2009 00:07:49 +0000 (00:07 +0000)
committerjianli@chromium.org <jianli@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Sep 2009 00:07:49 +0000 (00:07 +0000)
commit60766ba5a6bea79efaac17baacf444e86e4c7abc
tree443db810647205744b068cca65586baab21ffcf2
parenteff3c7540b9c4aebf5171591c1bda32a56bbdf12
[V8] Run-time exception in onmessage handler is not forwarded to the
worker object.
https://bugs.webkit.org/show_bug.cgi?id=28980

Reviewed by David Levin.

The previous fix was partially reverted due to a reliability build break
in chromium. The break happens when an exception is thrown without
setting a message. We need to check for this scenario and handle it.

Tested by worker-close.html.

* bindings/v8/V8AbstractEventListener.cpp:
(WebCore::V8AbstractEventListener::invokeEventHandler):
* bindings/v8/V8Utilities.cpp:
(WebCore::reportException):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bindings/v8/V8AbstractEventListener.cpp
WebCore/bindings/v8/V8Utilities.cpp