Code coverage report for debug\any.js

Statements: 100% (16 / 16)      Branches: 100% (0 / 0)      Functions: 100% (4 / 4)      Lines: 100% (16 / 16)      Ignored: none     

All files » debug\ » any.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30  8 8 8   8 63 63 63   63   63 63 63 63     8 51     8 12            
(function () { "use strict";
module.exports = function(Promise) {
var SomePromiseArray = Promise._SomePromiseArray;
var ASSERT = require("./assert.js");
 
function any(promises) {
    var ret = new SomePromiseArray(promises);
    var promise = ret.promise();
    ASSERT(promise.isPending(),
    "promise.isPending()");
    ASSERT((ret instanceof SomePromiseArray),
    "ret instanceof SomePromiseArray");
    ret.setHowMany(1);
    ret.setUnwrap();
    ret.init();
    return promise;
}
 
Promise.any = function (promises) {
    return any(promises);
};
 
Promise.prototype.any = function () {
    return any(this);
};
 
};
 
}());