archives

« Bugzilla Issues Index

#2579 — Make Promise.all robust in the face of evil promises and subclasses


Diffs:

* Markdown with whitespace: https://github.com/domenic/promises-unwrapping/commit/6fbf10096263270fe29516f6758add41a946f4be
* Markdown without whitespace: https://github.com/domenic/promises-unwrapping/commit/6fbf10096263270fe29516f6758add41a946f4be?w=1
* Rendered: https://github.com/domenic/promises-unwrapping/commit/show/6fbf10096263270fe29516f6758add41a946f4be/04c6e90#diff-04c6e90faac2675aa89e2176d2eec7d8

(Much of the with-whitespace diff is just adding an indentation level for existing code.)

---

See previous discussion at https://github.com/domenic/promises-unwrapping/issues/89


fixed in rev23 editor draft.

Note refactored patch to avoid introducing 'done' flag, similar to rev22 version.


Would love to see the patch so I can be sure it passes the tests :)


Created attachment 70
Promise.all, as edited


fixed in rev23 draft