Alex Crichton d32b6a916c Update futures implementation to not destroy callbacks
JS engines guarantee that at least one of our `then` callbacks are
invoked, so that means if we destroy them prematurely they're guaranteed
to log an exception to the console! Instead to prevent exceptions from
happening tweak how the completion callbacks for JS futures are managed
and ensure that the closures stay alive until they're invoked later.

Closes #1637
2019-07-09 11:14:26 -07:00
..
2019-06-19 11:14:37 -07:00
2019-06-19 11:14:37 -07:00
2019-06-19 11:14:37 -07:00
2019-06-19 11:14:37 -07:00
2019-06-19 11:14:37 -07:00
2019-06-19 11:14:37 -07:00
2019-06-19 11:14:37 -07:00
2018-11-27 12:07:59 -08:00
2019-06-13 08:30:06 -07:00
2019-06-19 11:14:37 -07:00
2019-06-19 11:14:37 -07:00