Skip to content

Commit e08fa94

Browse files
sygV8 LUCI CQ
authored andcommitted
[Promise.any] Fix errors allocation
Bug: chromium:1379054 Change-Id: Ibfcdd4ddc3c9a26471094074c8e7810d93abc898 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3988924 Commit-Queue: Marja Hölttä <[email protected]> Auto-Submit: Shu-yu Guo <[email protected]> Reviewed-by: Marja Hölttä <[email protected]> Cr-Commit-Position: refs/heads/main@{#83968}
1 parent dc2933e commit e08fa94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/builtins/promise-any.tq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ PromiseAnyRejectElementClosure(
119119
kPromiseAnyRejectElementRemainingSlot);
120120

121121
// 9. Set errors[index] to x.
122-
const newCapacity = IntPtrMax(SmiUntag(remainingElementsCount), index + 1);
122+
const newCapacity = index + 1;
123123
if (newCapacity > errors.length_intptr) deferred {
124124
errors = ExtractFixedArray(errors, 0, errors.length_intptr, newCapacity);
125125
*ContextSlot(

0 commit comments

Comments
 (0)