mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
LibJS: Stop propagating small OOM errors from the Error object
This commit is contained in:
parent
df915f8a98
commit
54d1f4e234
17 changed files with 68 additions and 77 deletions
|
@ -178,10 +178,7 @@ public:
|
|||
auto& realm = *current_realm();
|
||||
auto completion = T::create(realm, forward<Args>(args)...);
|
||||
|
||||
if constexpr (IsSame<decltype(completion), ThrowCompletionOr<NonnullGCPtr<T>>>)
|
||||
return JS::throw_completion(MUST_OR_THROW_OOM(completion));
|
||||
else
|
||||
return JS::throw_completion(completion);
|
||||
return JS::throw_completion(completion);
|
||||
}
|
||||
|
||||
template<typename T, typename... Args>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue