Changeset 56461 in webkit


Ignore:
Timestamp:
Mar 24, 2010 3:05:02 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-24 Drew Wilson <atwilson@chromium.org>

Reviewed by Dmitry Titov.

Failed assertion in V8Proxy::setDOMException() if worker is shutting down.
https://bugs.webkit.org/show_bug.cgi?id=36514

Test: none (existing worker tests suffice)

  • bindings/v8/V8Proxy.cpp: (WebCore::V8Proxy::setDOMException): Updated setDOMException() to check for an empty exception (due to no active context) and avoid throwing in that case.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r56460 r56461  
     12010-03-24  Drew Wilson  <atwilson@chromium.org>
     2
     3        Reviewed by Dmitry Titov.
     4
     5        Failed assertion in V8Proxy::setDOMException() if worker is shutting down.
     6        https://bugs.webkit.org/show_bug.cgi?id=36514
     7
     8        Test: none (existing worker tests suffice)
     9
     10        * bindings/v8/V8Proxy.cpp:
     11        (WebCore::V8Proxy::setDOMException):
     12        Updated setDOMException() to check for an empty exception (due to no active context) and avoid throwing in that case.
     13
    1142010-03-23  Evan Martin  <evan@chromium.org>
    215
  • trunk/WebCore/bindings/v8/V8Proxy.cpp

    r56443 r56461  
    667667        break;
    668668#endif
    669     }
    670 
    671     ASSERT(!exception.IsEmpty());
    672     v8::ThrowException(exception);
     669    default:
     670        ASSERT_NOT_REACHED();
     671    }
     672
     673    if (!exception.IsEmpty())
     674        v8::ThrowException(exception);
    673675}
    674676
Note: See TracChangeset for help on using the changeset viewer.