You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if Meteor.isClient and /PhantomJS/.test window.navigator.userAgent
# PhantomJS (used for testing on Travis CI) does not have Function.prototype.bind and pdf.js is using it
# https://github.com/ariya/phantomjs/issues/10522
if !Function.prototype.bind
Function.prototype.bind = (oThis, args...) ->
_.bind this, oThis, args...
The code from Mozilla didn't really work for me in all cases and tests were failing from strange reasons connected with how bind operated. This code made them work.
PhantomJS is missing Function.prototype.bind:
So code which uses it fails to test. There is a workaround. Is there a way to include that somehow before all other code is run?
The text was updated successfully, but these errors were encountered: