mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Change return type of encapsulate for AlgorithmMethods
The standard ask to turn EncapsulatedBits into an ECMAScript Object which means it must initially live in the host stack.
This commit is contained in:
Notes:
github-actions[bot]
2025-12-30 13:18:36 +00:00
Author: https://github.com/tete17 Commit: https://github.com/LadybirdBrowser/ladybird/commit/ec67f0ae8db Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6970 Reviewed-by: https://github.com/shannonbooth ✅
@@ -39,7 +39,7 @@ struct EncapsulatedBits {
|
||||
Optional<ByteBuffer> shared_key;
|
||||
Optional<ByteBuffer> ciphertext;
|
||||
|
||||
JS::ThrowCompletionOr<GC::Ref<JS::Object>> to_object(JS::Realm&);
|
||||
JS::ThrowCompletionOr<GC::Ref<JS::Object>> to_object(JS::Realm&) const;
|
||||
};
|
||||
|
||||
struct HashAlgorithmIdentifier : public AlgorithmIdentifier {
|
||||
@@ -377,7 +377,7 @@ public:
|
||||
return WebIDL::NotSupportedError::create(m_realm, "unwwrapKey is not supported"_utf16);
|
||||
}
|
||||
|
||||
virtual WebIDL::ExceptionOr<GC::Ref<EncapsulatedBits>> encapsulate(AlgorithmParams const&, GC::Ref<CryptoKey>)
|
||||
virtual WebIDL::ExceptionOr<EncapsulatedBits> encapsulate(AlgorithmParams const&, GC::Ref<CryptoKey>)
|
||||
{
|
||||
return WebIDL::NotSupportedError::create(m_realm, "encapsulate is not supported"_utf16);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user