mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/Infra: Ignore OOM for utf16 conversion in 'is code unit prefix'
This commit is contained in:
parent
91159df0dd
commit
1cd09724f1
|
|
@ -71,8 +71,8 @@ ErrorOr<String> strip_and_collapse_whitespace(StringView string)
|
|||
// https://infra.spec.whatwg.org/#code-unit-prefix
|
||||
bool is_code_unit_prefix(StringView potential_prefix, StringView input)
|
||||
{
|
||||
auto potential_prefix_utf16 = utf8_to_utf16(potential_prefix).release_value_but_fixme_should_propagate_errors();
|
||||
auto input_utf16 = utf8_to_utf16(input).release_value_but_fixme_should_propagate_errors();
|
||||
auto potential_prefix_utf16 = MUST(utf8_to_utf16(potential_prefix));
|
||||
auto input_utf16 = MUST(utf8_to_utf16(input));
|
||||
|
||||
// 1. Let i be 0.
|
||||
size_t i = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user