1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 17:38:12 +00:00

LibJS: Use Vector<u16, 1> for UTF-16 in a few more places

This commit is contained in:
Andreas Kling 2021-10-02 17:41:34 +02:00
parent dc99b702be
commit f0b3a06746
3 changed files with 3 additions and 3 deletions

View file

@ -124,7 +124,7 @@ JS_DEFINE_NATIVE_FUNCTION(StringConstructor::raw)
// 22.1.2.1 String.fromCharCode ( ...codeUnits ), https://tc39.es/ecma262/#sec-string.fromcharcode
JS_DEFINE_NATIVE_FUNCTION(StringConstructor::from_char_code)
{
Vector<u16> string;
Vector<u16, 1> string;
string.ensure_capacity(vm.argument_count());
for (size_t i = 0; i < vm.argument_count(); ++i) {