/* static */ void PromiseDebugging::GetPromiseID(GlobalObject&, Promise& aPromise, nsString& aID) { uint64_t promiseID = aPromise.GetID(); aID = sIDPrefix; aID.AppendInt(promiseID); }
/* static */ void PromiseDebugging::GetPromiseID(GlobalObject&, JS::Handle<JSObject*> aPromise, nsString& aID, ErrorResult& aRv) { Promise* promise = UnwrapPromise(aPromise, aRv); if (aRv.Failed()) { return; } uint64_t promiseID = promise->GetID(); aID = sIDPrefix; aID.AppendInt(promiseID); }