Title: [208751] trunk/Source/WebCore
Revision
208751
Author
[email protected]
Date
2016-11-15 13:48:02 -0800 (Tue, 15 Nov 2016)

Log Message

Followup patch for r208737

Reviewed by Yusuke Suzuki.

* bindings/js/JSSubtleCryptoCustom.cpp:
(WebCore::jsSubtleCryptoFunctionExportKeyPromise):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208750 => 208751)


--- trunk/Source/WebCore/ChangeLog	2016-11-15 21:15:04 UTC (rev 208750)
+++ trunk/Source/WebCore/ChangeLog	2016-11-15 21:48:02 UTC (rev 208751)
@@ -1,3 +1,12 @@
+2016-11-15  Jiewen Tan  <[email protected]>
+
+        Followup patch for r208737
+
+        Reviewed by Yusuke Suzuki.
+
+        * bindings/js/JSSubtleCryptoCustom.cpp:
+        (WebCore::jsSubtleCryptoFunctionExportKeyPromise):
+
 2016-11-14  Simon Fraser  <[email protected]>
 
         [iOS WK2] Implement support for visual viewports

Modified: trunk/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp (208750 => 208751)


--- trunk/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp	2016-11-15 21:15:04 UTC (rev 208750)
+++ trunk/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp	2016-11-15 21:48:02 UTC (rev 208751)
@@ -472,7 +472,7 @@
 
     RefPtr<CryptoKey> key = JSCryptoKey::toWrapped(state.uncheckedArgument(1));
     if (!key) {
-        promise->reject<JSValue>(createTypeError(&state, ASCIILiteral("Invalid CryptoKey")));
+        promise->reject(TypeError, ASCIILiteral("Invalid CryptoKey"));
         return;
     }
 
@@ -490,12 +490,12 @@
     case CryptoAlgorithmIdentifier::HMAC:
         break;
     default:
-        promise->reject<JSValue>(createDOMException(&state, NOT_SUPPORTED_ERR, ASCIILiteral("The operation is not supported")));
+        promise->reject(TypeError, ASCIILiteral("The operation is not supported"));
         return;
     }
 
     if (!key->extractable()) {
-        promise->reject<JSValue>(createDOMException(&state, INVALID_ACCESS_ERR, ASCIILiteral("The CryptoKey is nonextractable")));
+        promise->reject(INVALID_ACCESS_ERR, ASCIILiteral("The CryptoKey is nonextractable"));
         return;
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to