mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Implement TextEncoder.prototype.encode()
This commit is contained in:
parent
35d3a1e77b
commit
f37d00c07b
Notes:
sideshowbarker
2024-07-17 22:53:32 +09:00
Author: https://github.com/linusg
Commit: f37d00c07b
Pull-request: https://github.com/SerenityOS/serenity/pull/11231
Reviewed-by: https://github.com/alimpfard
6 changed files with 69 additions and 2 deletions
|
@ -32,6 +32,8 @@ public:
|
|||
return TextEncoder::create();
|
||||
}
|
||||
|
||||
JS::Uint8Array* encode(String const& input) const;
|
||||
|
||||
protected:
|
||||
// https://encoding.spec.whatwg.org/#dom-textencoder
|
||||
TextEncoder() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue