| Index: Source/bindings/core/v8/V8Initializer.cpp
|
| diff --git a/Source/bindings/core/v8/V8Initializer.cpp b/Source/bindings/core/v8/V8Initializer.cpp
|
| index 8b29c7083c80ca58616c425abed89460478dd10c..e938f981de1c49cd677727713f261c73b37dfca3 100644
|
| --- a/Source/bindings/core/v8/V8Initializer.cpp
|
| +++ b/Source/bindings/core/v8/V8Initializer.cpp
|
| @@ -482,7 +482,8 @@ static void messageHandlerInWorker(v8::Handle<v8::Message> message, v8::Handle<v
|
| if (ExecutionContext* context = scriptState->executionContext()) {
|
| String errorMessage = toCoreString(message->Get());
|
| TOSTRING_VOID(V8StringResource<>, sourceURL, message->GetScriptOrigin().ResourceName());
|
| - int scriptId = message->GetScriptOrigin().ScriptID()->Value();
|
| + int scriptId = 0;
|
| + RefPtrWillBeRawPtr<ScriptCallStack> callStack = extractCallStack(isolate, message, &scriptId);
|
|
|
| RefPtrWillBeRawPtr<ErrorEvent> event = ErrorEvent::create(errorMessage, sourceURL, message->GetLineNumber(), message->GetStartColumn() + 1, &DOMWrapperWorld::current(isolate));
|
| AccessControlStatus corsStatus = message->IsSharedCrossOrigin() ? SharableCrossOrigin : NotSharableCrossOrigin;
|
| @@ -491,7 +492,7 @@ static void messageHandlerInWorker(v8::Handle<v8::Message> message, v8::Handle<v
|
| // the error event from the v8::Message, quietly leave.
|
| if (!v8::V8::IsExecutionTerminating(isolate)) {
|
| V8ErrorHandler::storeExceptionOnErrorEventWrapper(isolate, event.get(), data, scriptState->context()->Global());
|
| - context->reportException(event.release(), scriptId, nullptr, corsStatus);
|
| + context->reportException(event.release(), scriptId, callStack, corsStatus);
|
| }
|
| }
|
|
|
|
|