4 ms·
I suppose it will simply add two side-effects to the last link in the promise chain: $ node --harmony_promise_finally -e ' Promise .resolve()
by runarberg 9y ago
I suppose it will simply add two side-effects to the last link in the promise chain:
$ node --harmony_promise_finally -e '
Promise
.resolve()
.finally(() => console.log("foo"))
.finally(() => console.log("bar"));
'
foo
bar