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:
parent
a8cef1fa06
commit
f783af05ed
3 changed files with 8 additions and 7 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue