Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Kris Maglione 8c0ed09430 Bug 1486512: Fix compiling Promise-inl.h on MSVC. r=froydnj
For reasions which are unclear, MSVC does not recognize the declaration and
definition of ThenWithCycleCollectedArts as matching in their previous form.
Changing both to use the same template `using` declaration for the entire
return type fixes this.

MSVC also has problems with the previous use of std::forward, which is fixed
by explicitly coercing smart pointers to their equivalent pointer types, and
moving any other type.

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

--HG--
extra : rebase_source : 483fc7c33a0b10227b11862d176299813466ac95
2018-08-27 13:10:23 -07:00
Kris Maglione acf635a29b Bug 1484373: Part 2c - Add Promise::Then handler which accepts a lambda. r=smaug
This makes it easier to add promise handlers from C++ in a manner similar to
JavaScript.

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

--HG--
extra : rebase_source : efa6735da4b22677b684ae790aede6aac6bb1bad
2018-08-18 09:43:22 -07:00