mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 12:04:38 +00:00
912b0df630
Similar to MozPromise::FromGeckoResult. Allows to create a MozPromise that will be resolved/rejected when the JS promise does the same. It would be nice to be able to chain the two promise types, but it would be an additional effort. MozPromise::FromDomPromise is limited to primitive types only and the reject value type must be nsresult. Differential Revision: https://phabricator.services.mozilla.com/D46017 --HG-- extra : moz-landing-system : lando