1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

LibWeb: Port SubtleCrypto to new String

The algorithm comparison in digest() is done using a StringView to avoid
complex error handling and promise rejection.
This commit is contained in:
Kenneth Myhra 2023-02-23 21:31:57 +01:00 committed by Linus Groh
parent a8cef1fa06
commit f783af05ed
3 changed files with 8 additions and 7 deletions

View file

@ -19,7 +19,7 @@ public:
virtual ~SubtleCrypto() override;
JS::Promise* digest(DeprecatedString const& algorithm, JS::Handle<JS::Object> const& data);
JS::Promise* digest(String const& algorithm, JS::Handle<JS::Object> const& data);
private:
explicit SubtleCrypto(JS::Realm&);