Name Description Size Coverage
gtest 0 %
moz.build 862 -
Promise-inl.h @param aPromise A promise that will be settled by the result of the callbacks. Any thrown value to ErrorResult passed to those callbacks will be used to reject the promise, otherwise the promise will be resolved with the return value. @param aOnResolve A resolve callback @param aOnReject A reject callback @param aArgs The custom arguments to be passed to the both callbacks. The handler class will grab them to make them live long enough and to allow cycle collection. @param aJSArgs The JS arguments to be passed to the both callbacks, after native arguments. The handler will also grab them and allow garbage collection. XXX(krosylight): ideally there should be two signatures, with or without a promise parameter. Unfortunately doing so confuses the compiler and errors out, because nothing prevents promise from being ResolveCallback. 13302 98 %
Promise.cpp 39776 84 %
Promise.h 20945 73 %
PromiseDebugging.cpp static 9888 85 %
PromiseDebugging.h 2823 -
PromiseNativeHandler.cpp 535 100 %
PromiseNativeHandler.h PromiseNativeHandler allows C++ to react to a Promise being rejected/resolved. A PromiseNativeHandler can be appended to a Promise using Promise::AppendNativeHandler(). 2478 92 %
PromiseWorkerProxy.h 8203 100 %
tests -