Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

refactor($q): make $q Promises A+ v1.1 compilant #8708

Closed
wants to merge 1 commit into from

Commits on Aug 21, 2014

  1. refactor($q): make $q Promises A+ v1.1 compilant

    The Promises A+ 1.1 spec introduces new constraints that would cause $q to fail,
    particularly specs 2.3.1 and 2.3.3.
    
    Newly satisfied requirements:
    
     * "then" functions that return the same fulfilled/rejected promise 
    	will fail with a TypeError
     * Support for edge cases where "then" is a value other than function
    
    Full 1.1 spec: https://github.com/promises-aplus/promises-spec/tree/1.1.0
    
    This commit also modifies the adapter to use "resolve" method instead of "fulfill"
    lgalfaso authored and jeffbcross committed Aug 21, 2014
    Configuration menu
    Copy the full SHA
    588e2e3 View commit details
    Browse the repository at this point in the history