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

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@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.

@abe33 abe33 Fix source-map breaking on PhantomJS where bind isn't available
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.
61131e5
@abe33
Owner
abe33 commented on 61131e5 Jul 30, 2013

The problem was reported to PhantomJS here: ariya/phantomjs#10522

@fitzgen
Member
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