LibJS: Stop propagating small OOM errors from Intl.RelativeTimeFormat

This commit is contained in:
Timothy Flynn 2023-08-30 12:41:11 -04:00 committed by Andreas Kling
commit b6835d2c40
Notes: sideshowbarker 2024-07-17 01:11:48 +09:00
4 changed files with 18 additions and 20 deletions

View file

@ -28,6 +28,6 @@ private:
JS_DECLARE_NATIVE_FUNCTION(supported_locales_of);
};
ThrowCompletionOr<RelativeTimeFormat*> initialize_relative_time_format(VM& vm, RelativeTimeFormat& relative_time_format, Value locales_value, Value options_value);
ThrowCompletionOr<NonnullGCPtr<RelativeTimeFormat>> initialize_relative_time_format(VM& vm, RelativeTimeFormat& relative_time_format, Value locales_value, Value options_value);
}