Created
September 3, 2014 02:11
-
-
Save azu/3730d68e7dc8521f69d3 to your computer and use it in GitHub Desktop.
testable-implementation.js version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var Promise = require("../lib/testable-implementation"); | |
var OrdinaryConstruct = require("especially/abstract-operations").OrdinaryConstruct; | |
var p = OrdinaryConstruct(Promise, [ | |
function (resolve) { | |
resolve(""); | |
} | |
]); | |
p.then(function (result) { | |
console.log("1-1"); | |
}).then(function (result) { | |
console.log("1-2"); | |
}).then(function (result) { | |
console.log("1-3"); | |
}); | |
p.then(function (result) { | |
console.log("2-1") | |
}).then(function (result) { | |
console.log("2-2"); | |
}).then(function (result) { | |
console.log("2-3"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment