Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix source-map breaking on PhantomJS where bind isn't available #73

Closed
wants to merge 1 commit into from

Conversation

abe33
Copy link

@abe33 abe33 commented Jul 30, 2013

PhantomJS (1.9.1 and below) does not provides the Function.prototype.bind method. Since PhantomJS is already
used in production in CI environment such TravisCI it may be simpler for source-map to have a shim rather than waiting for
PhantomJS to fix that.

PhantomJS (1.9.1 and below) does not provides the `Function.prototype.bind` method. Since PhantomJS is already
used in production in CI environment such TravisCI it may be simpler for source-map to have a shim rather than waiting for
PhantomJS to fix that.
@fitzgen
Copy link
Contributor

fitzgen commented Jul 31, 2013

The source-map library supports ES5 environments. If phantom js isn't an ES5 environment, it is up to them to become one. In the meantime, you can add that polyfill to your grunt build or whatever equivalent you're using.

@fitzgen fitzgen closed this Jul 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants