1.0.0 • Published 9 years ago

phantomjs-function-bind-polyfill v1.0.0

Weekly downloads
14
License
MIT
Repository
github
Last release
9 years ago

Spec-compliant Function.prototype.bind polyfill for for PhantomJS

The Mozilla Function.prototype.bind polyfill results in a failure during Babel's _classCallCheck with this message:

"Cannot call a class as a function"

Specifically, this would be triggered by Babel compiled code such as:

var store = new (_bind.apply(_Store, [null].concat(constructorArgs)))();