Index: Source/modules/serviceworkers/Cache.cpp |
diff --git a/Source/modules/serviceworkers/Cache.cpp b/Source/modules/serviceworkers/Cache.cpp |
index ffc1461c1c32987fda974d362037c5d2d92f7ab0..b74a3f7bbf9e3a8892f24aa65b31fe52e0b551be 100644 |
--- a/Source/modules/serviceworkers/Cache.cpp |
+++ b/Source/modules/serviceworkers/Cache.cpp |
@@ -338,9 +338,9 @@ ScriptPromise Cache::putImpl(ScriptState* scriptState, const Request* request, R |
{ |
KURL url(KURL(), request->url()); |
if (!url.protocolIsInHTTPFamily()) |
- return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError("Request scheme '" + url.protocol() + "' is unsupported", scriptState->isolate())); |
+ return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), "Request scheme '" + url.protocol() + "' is unsupported")); |
if (request->method() != "GET") |
- return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError("Request method '" + request->method() + "' is unsupported", scriptState->isolate())); |
+ return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), "Request method '" + request->method() + "' is unsupported")); |
WebVector<WebServiceWorkerCache::BatchOperation> batchOperations(size_t(1)); |
batchOperations[0].operationType = WebServiceWorkerCache::OperationTypePut; |