mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibWeb: Implement TextEncoder.prototype.encode()
This commit is contained in:
parent
35d3a1e77b
commit
f37d00c07b
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