LibJS: Convert ArrayBuffer::create() to NonnullGCPtr

This commit is contained in:
Linus Groh 2022-12-13 20:49:50 +00:00
commit 947ea92bf6
Notes: sideshowbarker 2024-07-17 03:18:45 +09:00
7 changed files with 15 additions and 15 deletions

View file

@ -84,7 +84,7 @@ JS::Promise* SubtleCrypto::digest(DeprecatedString const& algorithm, JS::Handle<
return promise;
}
auto* result = JS::ArrayBuffer::create(realm, result_buffer.release_value());
auto result = JS::ArrayBuffer::create(realm, result_buffer.release_value());
// 9. Resolve promise with result.
promise->fulfill(result);