mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
LibJS: Make PrimitiveString::utf8_string() infallible
Work towards #20449.
This commit is contained in:
parent
7849950383
commit
c084269e5f
29 changed files with 79 additions and 93 deletions
|
@ -1669,7 +1669,7 @@ ThrowCompletionOr<MathematicalValue> to_intl_mathematical_value(VM& vm, Value va
|
|||
|
||||
// 3. If Type(primValue) is String,
|
||||
// a. Let str be primValue.
|
||||
auto string = TRY(primitive_value.as_string().utf8_string());
|
||||
auto string = primitive_value.as_string().utf8_string();
|
||||
|
||||
// Step 4 handled separately by the FIXME above.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue