DescriptionHarmony promises
Based on prototype at
https://github.com/rossberg-chromium/js-promise
which informed the latest spec draft version at
https://github.com/domenic/promises-unwrapping/blob/master/README.md
Activated by --harmony-promises.
Feature complete with respect to the draft spec, plus the addition of .when and .deferred methods. Final naming and other possible deviations from the current draft will hopefully be resolved soon after the next TC39 meeting.
This CL also generalises the Object.observe delivery loop into a simplistic microtask loop. Currently, all observer events are delivered before invoking any promise handler in a single fixpoint iteration. It's not clear yet what the final semantics is supposed to be (should there be a global event ordering?), but it will probably require a more thorough event loop abstraction inside V8 once we get there.
R=dslomov@chromium.org, yhirano@chromium.org
BUG=
Committed: http://code.google.com/p/v8/source/detail?r=18113
Patch Set 1 #
Total comments: 9
Patch Set 2 : Addressed Michael's comments #
Total comments: 2
Patch Set 3 : TODO addressing Elliott's comment #
Total comments: 8
Patch Set 4 : Fix Promise.all semantics #Patch Set 5 : Fix Promise.all([]) #
Total comments: 13
Patch Set 6 : Implement IsCallable predicate #Patch Set 7 : Ignore multiple resolution #
Total comments: 2
Patch Set 8 : Proper default handlers #Patch Set 9 : Added comment #Patch Set 10 : "Renamed .when to .chain; Dmitry's comments" #
Messages
Total messages: 22 (0 generated)
|