GithubHelp home page GithubHelp logo

Comments (8)

yethee avatar yethee commented on May 18, 2024

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.

mcordingley avatar mcordingley commented on May 18, 2024

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.

stefanpenner avatar stefanpenner commented on May 18, 2024

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.

mcordingley avatar mcordingley commented on May 18, 2024

@stefanpenner That's what I'm looking for. Thanks! Would be lovely if the README had that in it.

from es6-promise.

jgehrcke avatar jgehrcke commented on May 18, 2024

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.

usmonster avatar usmonster commented on May 18, 2024

@jgehrcke I think you'd be interested in #59 & #65.

from es6-promise.

stefanpenner avatar stefanpenner commented on May 18, 2024

we will make it auto-polyfil

from es6-promise.

stefanpenner avatar stefanpenner commented on May 18, 2024

master does this, soon after @jakearchibald has time to vet + audit, we will release a new version

from es6-promise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.