| Index: Source/core/workers/WorkerMessagingProxy.cpp
|
| diff --git a/Source/core/workers/WorkerMessagingProxy.cpp b/Source/core/workers/WorkerMessagingProxy.cpp
|
| index 1752204326f8edd55fb9e98de4c40fbaf56f0fdc..c8b1b45aff1fc705797e95202a94fceb81abaf9e 100644
|
| --- a/Source/core/workers/WorkerMessagingProxy.cpp
|
| +++ b/Source/core/workers/WorkerMessagingProxy.cpp
|
| @@ -165,7 +165,7 @@ void WorkerMessagingProxy::postTaskToLoader(PassOwnPtr<ExecutionContextTask> tas
|
| m_executionContext->postTask(task);
|
| }
|
|
|
| -void WorkerMessagingProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL)
|
| +void WorkerMessagingProxy::reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId)
|
| {
|
| if (!m_workerObject)
|
| return;
|
| @@ -175,8 +175,8 @@ void WorkerMessagingProxy::reportException(const String& errorMessage, int lineN
|
|
|
| RefPtrWillBeRawPtr<ErrorEvent> event = ErrorEvent::create(errorMessage, sourceURL, lineNumber, columnNumber, nullptr);
|
| bool errorHandled = !m_workerObject->dispatchEvent(event);
|
| - if (!errorHandled)
|
| - m_executionContext->reportException(event, 0, nullptr, NotSharableCrossOrigin);
|
| +
|
| + postTaskToWorkerGlobalScope(createCrossThreadTask(&WorkerGlobalScope::exceptionHandled, m_workerThread->workerGlobalScope(), exceptionId, errorHandled));
|
| }
|
|
|
| void WorkerMessagingProxy::reportConsoleMessage(MessageSource source, MessageLevel level, const String& message, int lineNumber, const String& sourceURL)
|
|
|