mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +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
|
@ -1,4 +1,4 @@
|
|||
[SecureContext,Exposed=(Window,Worker)]
|
||||
[SecureContext,Exposed=(Window,Worker), UseNewAKString]
|
||||
interface SubtleCrypto {
|
||||
// FIXME: Add support for AlgorithmIdentifier ("typedef (object or DOMString)")
|
||||
Promise<any> digest(DOMString algorithm, BufferSource data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue