mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
1370922 - [Ion] Handle allocation failure when generating Math.min.
1370922 - [Ion] Handle allocation failure when generating Math.min.
This commit is contained in:
parent
8ce7ad6871
commit
5741caf9b2
1 changed files with 3 additions and 1 deletions
|
|
@ -1312,7 +1312,9 @@ IonBuilder::inlineMathMinMax(CallInfo& callInfo, bool max)
|
|||
current->add(last);
|
||||
|
||||
for (unsigned i = 2; i < cases.length(); i++) {
|
||||
MMinMax* ins = MMinMax::New(alloc(), last, cases[i], returnType, max);
|
||||
MMinMax* ins = MMinMax::New(alloc().fallible(), last, cases[i], returnType, max);
|
||||
if (!ins)
|
||||
return abort(AbortReason::Alloc);
|
||||
current->add(ins);
|
||||
last = ins;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue