Comments (8)
You can use any link from Downloads section.
For example:
<script src="https://es6-promises.s3.amazonaws.com/es6-promise-2.0.0.min.js"></script>
from es6-promise.
Sure, but what browser global, if any, does it expose if a module system is not present? Or, does it auto polyfill Promise
as a global in that case? The README only really covers what to do with the return value of require()
, which doesn't apply in this circumstance.
from es6-promise.
window.Promise = window.ES6Promise
We can likely expose the polyfil on the ES6Promise namespace as ES6Promise.polyfil()
but this is not currently the case
from es6-promise.
@stefanpenner That's what I'm looking for. Thanks! Would be lovely if the README had that in it.
from es6-promise.
Part of my code calls new Promise()
, which threw a ReferenceError in IE11. I have then included this polyfill via <script src="bower_components/es6-promise/promise.min.js"></script>
and the error is gone. So in which case do we still need to call window.Promise = window.ES6Promise
?
from es6-promise.
@jgehrcke I think you'd be interested in #59 & #65.
from es6-promise.
we will make it auto-polyfil
from es6-promise.
master does this, soon after @jakearchibald has time to vet + audit, we will release a new version
from es6-promise.
Related Issues (20)
- Intercepting `Promise.resolve` fails in `enumerator.js#L82`
- ES6Promise.Promise.prototype.finally does not behave according to spec HOT 3
- Library outdated on cdnjs
- Consider enabling the daily build in TravisCI
- The automatic polyfill fails when both 'window' and 'global' exist.
- Add `unpkg` and `jsdelivr` properties to package.json which point at dist version HOT 1
- Accessing `then` on a `function` or `object` throws within the `getThen` helper HOT 6
- Inconsistent type on `Thenable.then` overload? HOT 1
- Promise.prototype.catch IE8 Expected identifier error HOT 1
- Why are you using setTimeout(1) instead of setTimeout(0)? HOT 4
- .d.ts incompatible with TypeScript lib definitions
- ie9 catch error HOT 2
- Missing polyfill for Promise.allSettled HOT 7
- Error: 'Promise' is not exported HOT 1
- Is it required to include both scripts in html page? HOT 2
- Update CHANGELOG with 4.2.6, 4.2.7, 4.2.8?
- Switch build to Babel 7? HOT 1
- The output sequence is not consistent with native performance HOT 1
- incompatible with ie11 + babel + webpack
- Mau claim produk yang telah saya gunakan untuk konfirmasi hasil yang maksimal di perangkat Android yang telah saya mainkan verryhadisaputra
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es6-promise.