tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 62757b474ff4670f23b01b9d80a3924b952d4990
parent 96a8bffa4ef26c4208c6546981bcc1ee2cdec116
Author: Matthew Gaudet <mgaudet@mozilla.com>
Date:   Mon, 15 Dec 2025 18:47:17 +0000

Bug 2005842 - Use initFixedSlot in NewReactionRecord r=arai

Differential Revision: https://phabricator.services.mozilla.com/D276320

Diffstat:
Mjs/src/builtin/Promise.cpp | 22+++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/js/src/builtin/Promise.cpp b/js/src/builtin/Promise.cpp @@ -5664,19 +5664,19 @@ static PromiseReactionRecord* NewReactionRecord( // See comments for ReactionRecordSlots for the relation between // spec record fields and PromiseReactionRecord slots. - reaction->setFixedSlot(PromiseReactionRecord::Promise, - ObjectOrNullValue(resultCapability.promise())); + reaction->initFixedSlot(PromiseReactionRecord::Promise, + ObjectOrNullValue(resultCapability.promise())); // We set [[Type]] in EnqueuePromiseReactionJob, by calling // setTargetStateAndHandlerArg. - reaction->setFixedSlot(PromiseReactionRecord::Flags, Int32Value(0)); - reaction->setFixedSlot(PromiseReactionRecord::OnFulfilled, onFulfilled); - reaction->setFixedSlot(PromiseReactionRecord::OnRejected, onRejected); - reaction->setFixedSlot(PromiseReactionRecord::Resolve, - ObjectOrNullValue(resultCapability.resolve())); - reaction->setFixedSlot(PromiseReactionRecord::Reject, - ObjectOrNullValue(resultCapability.reject())); - reaction->setFixedSlot(PromiseReactionRecord::HostDefinedData, - ObjectOrNullValue(hostDefinedData)); + reaction->initFixedSlot(PromiseReactionRecord::Flags, Int32Value(0)); + reaction->initFixedSlot(PromiseReactionRecord::OnFulfilled, onFulfilled); + reaction->initFixedSlot(PromiseReactionRecord::OnRejected, onRejected); + reaction->initFixedSlot(PromiseReactionRecord::Resolve, + ObjectOrNullValue(resultCapability.resolve())); + reaction->initFixedSlot(PromiseReactionRecord::Reject, + ObjectOrNullValue(resultCapability.reject())); + reaction->initFixedSlot(PromiseReactionRecord::HostDefinedData, + ObjectOrNullValue(hostDefinedData)); return reaction; }