1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

LibWeb: Implement TextEncoder.prototype.encode()

This commit is contained in:
Linus Groh 2021-12-12 18:05:11 +00:00 committed by Andreas Kling
parent 35d3a1e77b
commit f37d00c07b
6 changed files with 69 additions and 2 deletions

View file

@ -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;