mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Mark JS::Promise* return value for digest() with JS::NNGCPtr
This commit is contained in:
parent
f783af05ed
commit
fa1ba7fadf
Notes:
sideshowbarker
2024-07-17 23:00:03 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/fa1ba7fadf Pull-request: https://github.com/SerenityOS/serenity/pull/17596
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ JS::ThrowCompletionOr<void> SubtleCrypto::initialize(JS::Realm& realm)
|
|||
}
|
||||
|
||||
// https://w3c.github.io/webcrypto/#dfn-SubtleCrypto-method-digest
|
||||
JS::Promise* SubtleCrypto::digest(String const& algorithm, JS::Handle<JS::Object> const& data)
|
||||
JS::NonnullGCPtr<JS::Promise> SubtleCrypto::digest(String const& algorithm, JS::Handle<JS::Object> const& data)
|
||||
{
|
||||
auto& realm = this->realm();
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
|
||||
virtual ~SubtleCrypto() override;
|
||||
|
||||
JS::Promise* digest(String const& algorithm, JS::Handle<JS::Object> const& data);
|
||||
JS::NonnullGCPtr<JS::Promise> digest(String const& algorithm, JS::Handle<JS::Object> const& data);
|
||||
|
||||
private:
|
||||
explicit SubtleCrypto(JS::Realm&);
|
||||
|
|
Loading…
Reference in a new issue