UNPKG
promise
Version:
canary (8.3.0-canary-5)
latest (8.3.0)
8.3.0
8.3.0-canary-5
8.2.0
8.2.0-canary-4
8.2.0-canary-2
8.1.0
8.0.3
8.0.2
8.0.1
8.0.0
7.3.1
7.3.0
7.2.0
7.1.1
7.1.0
7.0.4
7.0.3
7.0.2
7.0.1
7.0.0
6.1.0
6.0.1
6.0.0
5.0.0
4.0.0
3.2.0
3.1.0
3.0.1
3.0.0
2.0.0
1.3.0
1.2.2
1.2.1
Bare bones Promises/A+ implementation
github.com/then/promise
then/promise
promise
/
polyfill.js
11 lines
(7 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// not "use strict" so we can declare global "Promise"
var
asap =
require
(
'asap'
);
if
(
typeof
Promise
===
'undefined'
) {
Promise
=
require
(
'./lib/core.js'
)
require
(
'./lib/es6-extensions.js'
) }
require
(
'./polyfill-done.js'
);