mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
LibWeb: Use WebIDL types where possible instead of C types
This commit is contained in:
parent
f1d6693990
commit
c41b359ca5
Notes:
sideshowbarker
2024-07-17 10:08:28 +09:00
Author: https://github.com/bplaat
Commit: c41b359ca5
Pull-request: https://github.com/SerenityOS/serenity/pull/23352
13 changed files with 32 additions and 24 deletions
|
@ -55,9 +55,9 @@ TextEncoderEncodeIntoResult TextEncoder::encode_into(String const& source, JS::H
|
|||
auto& data = destination->viewed_array_buffer()->buffer();
|
||||
|
||||
// 1. Let read be 0.
|
||||
unsigned long long read = 0;
|
||||
WebIDL::UnsignedLongLong read = 0;
|
||||
// 2. Let written be 0.
|
||||
unsigned long long written = 0;
|
||||
WebIDL::UnsignedLongLong written = 0;
|
||||
|
||||
// NOTE: The AK::String is always UTF-8, so most of these steps are no-ops.
|
||||
// 3. Let encoder be an instance of the UTF-8 encoder.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue