diff --git a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp index 5bb9104f1c..64c9a3834f 100644 --- a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp +++ b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp @@ -35,7 +35,7 @@ JS::ThrowCompletionOr SubtleCrypto::initialize(JS::Realm& realm) } // https://w3c.github.io/webcrypto/#dfn-SubtleCrypto-method-digest -JS::Promise* SubtleCrypto::digest(String const& algorithm, JS::Handle const& data) +JS::NonnullGCPtr SubtleCrypto::digest(String const& algorithm, JS::Handle const& data) { auto& realm = this->realm(); diff --git a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h index 0113cf16b1..ad4c700d75 100644 --- a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h +++ b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.h @@ -19,7 +19,7 @@ public: virtual ~SubtleCrypto() override; - JS::Promise* digest(String const& algorithm, JS::Handle const& data); + JS::NonnullGCPtr digest(String const& algorithm, JS::Handle const& data); private: explicit SubtleCrypto(JS::Realm&);