Index: Source/bindings/v8/WorkerScriptController.cpp |
diff --git a/Source/bindings/v8/WorkerScriptController.cpp b/Source/bindings/v8/WorkerScriptController.cpp |
index 4524c7fb650e083c9ad1830f03b06da1cc60299f..c95df01b73cd2d2c6dbb01a15d2fbaf3c72ea0ee 100644 |
--- a/Source/bindings/v8/WorkerScriptController.cpp |
+++ b/Source/bindings/v8/WorkerScriptController.cpp |
@@ -165,8 +165,9 @@ ScriptValue WorkerScriptController::evaluate(const String& script, const String& |
state->hadException = true; |
state->errorMessage = toWebCoreString(message->Get()); |
state->lineNumber = message->GetLineNumber(); |
+ state->columnNumber = message->GetStartColumn(); |
state->sourceURL = toWebCoreString(message->GetScriptResourceName()); |
- if (m_workerGlobalScope->sanitizeScriptError(state->errorMessage, state->lineNumber, state->sourceURL)) |
+ if (m_workerGlobalScope->sanitizeScriptError(state->errorMessage, state->lineNumber, state->columnNumber, state->sourceURL)) |
state->exception = throwError(v8GeneralError, state->errorMessage.utf8().data(), m_isolate); |
else |
state->exception = ScriptValue(block.Exception()); |
@@ -192,7 +193,7 @@ void WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, Script |
if (exception) |
*exception = state.exception; |
else |
- m_workerGlobalScope->reportException(state.errorMessage, state.lineNumber, state.sourceURL, 0); |
+ m_workerGlobalScope->reportException(state.errorMessage, state.lineNumber, state.columnNumber, state.sourceURL, 0); |
} |
} |