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

LibJS: Propagate OOM from remaining Intl Vector operations

This commit is contained in:
Timothy Flynn 2023-02-02 19:46:33 -05:00 committed by Linus Groh
parent 9af525bbb0
commit 858126d236
2 changed files with 7 additions and 6 deletions

View file

@ -188,7 +188,7 @@ static ThrowCompletionOr<LocaleAndKeys> apply_unicode_extension_to_tag(VM& vm, S
// iv. Else,
else {
// 1. Append the Record { [[Key]]: key, [[Value]]: value } to keywords.
keywords.append({ TRY_OR_THROW_OOM(vm, String::from_utf8(key)), *value });
TRY_OR_THROW_OOM(vm, keywords.try_append({ TRY_OR_THROW_OOM(vm, String::from_utf8(key)), *value }));
}
}