Index: Source/modules/serviceworkers/ServiceWorkerClients.cpp |
diff --git a/Source/modules/serviceworkers/ServiceWorkerClients.cpp b/Source/modules/serviceworkers/ServiceWorkerClients.cpp |
index df3afdf2491ce3e1bb349fb29d82701604313725..48e5176675ff04e26da0ed72231341e748576035 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerClients.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorkerClients.cpp |
@@ -115,7 +115,7 @@ ScriptPromise ServiceWorkerClients::openWindow(ScriptState* scriptState, const S |
KURL parsedUrl = KURL(toWorkerGlobalScope(context)->location()->url(), url); |
if (!parsedUrl.isValid()) { |
- resolver->reject(DOMException::create(SyntaxError, "'" + url + "' is not a valid URL.")); |
+ resolver->reject(V8ThrowException::createTypeError(scriptState->isolate(), "'" + url + "' is not a valid URL.")); |
return promise; |
} |