Index: Source/bindings/v8/WorkerScriptController.cpp |
diff --git a/Source/bindings/v8/WorkerScriptController.cpp b/Source/bindings/v8/WorkerScriptController.cpp |
index a3e24382cb2e3e221d058aae0bdc561a54fb68a0..c6682a517d829a606872ca4cd685886e2bf575d5 100644 |
--- a/Source/bindings/v8/WorkerScriptController.cpp |
+++ b/Source/bindings/v8/WorkerScriptController.cpp |
@@ -174,7 +174,8 @@ ScriptValue WorkerScriptController::evaluate(const String& script, const String& |
state->errorMessage = toWebCoreString(message->Get()); |
state->lineNumber = message->GetLineNumber(); |
state->columnNumber = message->GetStartColumn() + 1; |
- state->sourceURL = toWebCoreString(message->GetScriptResourceName()); |
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, sourceURL, message->GetScriptResourceName(), ScriptValue()); |
+ state->sourceURL = sourceURL; |
state->exception = ScriptValue(block.Exception(), isolate()); |
block.Reset(); |
} else |