1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:57:35 +00:00

LibWeb: Use AlgorithmIdentifier in SubtleCrypto IDL

This commit is contained in:
stelar7 2023-12-14 20:56:30 +01:00 committed by Andreas Kling
parent d94543f964
commit 635ad9e9b8
3 changed files with 19 additions and 6 deletions

View file

@ -20,7 +20,7 @@ public:
virtual ~SubtleCrypto() override;
JS::NonnullGCPtr<JS::Promise> digest(String const& algorithm, JS::Handle<WebIDL::BufferSource> const& data);
JS::NonnullGCPtr<JS::Promise> digest(Variant<JS::Handle<JS::Object>, String> const& algorithm, JS::Handle<WebIDL::BufferSource> const& data);
private:
explicit SubtleCrypto(JS::Realm&);