So siehts ganz gut aus !

This commit is contained in:
2019-04-03 17:44:16 +02:00
parent 3695b33c83
commit 0fe884c90a
6758 changed files with 530485 additions and 65 deletions

32
node_modules/es5-ext/test/promise/#/as-callback.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
"use strict";
module.exports = function (t, a) {
if (typeof Promise !== "function") return null;
return {
Success: function (d) {
t.call(
new Promise(function (resolve) {
resolve("foo");
}),
function (error, value) {
a(error, null);
a(value, "foo");
d();
}
);
},
Failure: function (d) {
var error = new Error("Rejection");
t.call(
new Promise(function (resolve, reject) {
reject(error);
}),
function (passedError, value) {
a(passedError, error);
a(value, undefined);
d();
}
);
}
};
};