| Index: Source/core/workers/WorkerGlobalScope.cpp
|
| diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp
|
| index d66e3b7e91fe5fb91820f405da6602bcbeb53e86..82a11d33fb2e2dd14573948ac9f6c6f1e16309e4 100644
|
| --- a/Source/core/workers/WorkerGlobalScope.cpp
|
| +++ b/Source/core/workers/WorkerGlobalScope.cpp
|
| @@ -195,7 +195,7 @@ void WorkerGlobalScope::clearInspector()
|
| m_workerInspectorController.clear();
|
| }
|
|
|
| -void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState& es)
|
| +void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState& exceptionState)
|
| {
|
| ASSERT(contentSecurityPolicy());
|
| Vector<String>::const_iterator urlsEnd = urls.end();
|
| @@ -203,7 +203,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState
|
| for (Vector<String>::const_iterator it = urls.begin(); it != urlsEnd; ++it) {
|
| const KURL& url = executionContext()->completeURL(*it);
|
| if (!url.isValid()) {
|
| - es.throwDOMException(SyntaxError, "Failed to execute 'importScripts': the URL '" + *it + "' is invalid.");
|
| + exceptionState.throwDOMException(SyntaxError, "Failed to execute 'importScripts': the URL '" + *it + "' is invalid.");
|
| return;
|
| }
|
| completedURLs.append(url);
|
| @@ -217,7 +217,7 @@ void WorkerGlobalScope::importScripts(const Vector<String>& urls, ExceptionState
|
|
|
| // If the fetching attempt failed, throw a NetworkError exception and abort all these steps.
|
| if (scriptLoader->failed()) {
|
| - es.throwDOMException(NetworkError, "Failed to execute 'importScripts': the script at '" + it->elidedString() + "' failed to load.");
|
| + exceptionState.throwDOMException(NetworkError, "Failed to execute 'importScripts': the script at '" + it->elidedString() + "' failed to load.");
|
| return;
|
| }
|
|
|
|
|