Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib/node_modules/npm/node_modules/es6-promise/lib/es6-promise//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;
}
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | January 01 1970 00:00:00 | root / root | 0 | |
promise | -- | March 03 2024 22:36:29 | root / root | 0755 | |
| | | | | |
-internal.js | 5.188 KB | March 10 2021 14:36:38 | root / root | 0644 | |
asap.js | 3.097 KB | March 10 2021 14:36:38 | root / root | 0644 | |
enumerator.js | 2.783 KB | March 10 2021 14:36:38 | root / root | 0644 | |
polyfill.js | 0.707 KB | March 10 2021 14:36:38 | root / root | 0644 | |
promise.js | 9.813 KB | March 10 2021 14:36:38 | root / root | 0644 | |
then.js | 0.595 KB | March 10 2021 14:36:38 | root / root | 0644 | |
utils.js | 0.457 KB | March 10 2021 14:36:38 | root / root | 0644 | |