1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

LibJS: Use consistent phrasing for string length

This is an editorial change in the ECMA-262 spec.

See: 33ea99e
This commit is contained in:
Linus Groh 2022-05-03 21:37:01 +02:00
parent 8b035b80d3
commit f3768705a9
2 changed files with 4 additions and 4 deletions

View file

@ -495,7 +495,7 @@ static ThrowCompletionOr<String> encode(GlobalObject& global_object, String cons
auto& vm = global_object.vm();
auto utf16_string = Utf16String(string);
// 1. Let strLen be the number of code units in string.
// 1. Let strLen be the length of string.
auto string_length = utf16_string.length_in_code_units();
// 2. Let R be the empty String.