Kenneth Myhra
9fe12c1851
LibWeb: Let get_buffer_source_copy() return ErrorOr instead of Optional
...
This is a minor refactor of IDL::get_buffer_source_copy() letting it
return ErrorOr<ByteBuffer> instead of Optional<ByteBuffer>.
This also updates all places that use IDL::get_buffer_source_copy().
2022-07-22 23:08:28 +01:00
Ali Mohammad Pur
16c0646b9d
LibWeb: Implement a very basic version of TextDecoder
...
We had a very basic implementation of TextEncoder, let's add a
TextDecoder next to that :^)
2022-02-16 22:48:32 +03:30
davidot
de90d54be0
LibJS: Convert ArrayBuffer construction to ThrowCompletionOr
...
This also allows us to create TypedArrays with an existing buffer thus
clearing up an additional FIXME in TextEncoder.
2022-02-08 09:12:42 +00:00
Linus Groh
f8387dea26
LibWeb: Implement TextEncoder.prototype.encoding
2021-12-12 20:58:36 +01:00
Linus Groh
f37d00c07b
LibWeb: Implement TextEncoder.prototype.encode()
2021-12-12 20:58:36 +01:00
Linus Groh
35d3a1e77b
LibWeb: Add the TextEncoder interface
...
This is from the Encoding Standard (https://encoding.spec.whatwg.org ),
and therefore gets its own namespace and subdirectory within LibWeb :^)
2021-12-12 20:58:36 +01:00