Submit
Path:
~
/
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
es6-promise
/
lib
/
es6-promise
/
File Content:
polyfill.js
/*global self*/ import Promise from './promise'; export default function polyfill() { let local; if (typeof global !== 'undefined') { local = global; } else if (typeof self !== 'undefined') { local = self; } else { try { local = Function('return this')(); } catch (e) { throw new Error('polyfill failed because global object is unavailable in this environment'); } } let P = local.Promise; if (P) { var promiseToString = null; try { promiseToString = Object.prototype.toString.call(P.resolve()); } catch(e) { // silently ignored } if (promiseToString === '[object Promise]' && !P.cast){ return; } } local.Promise = Promise; }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
promise
---
0755
-internal.js
5313 bytes
0644
asap.js
3171 bytes
0644
enumerator.js
2850 bytes
0644
polyfill.js
724 bytes
0644
promise.js
10049 bytes
0644
then.js
609 bytes
0644
utils.js
468 bytes
0644
N4ST4R_ID | Naxtarrr