Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

phantomjs-polyfill

tom-james-watson18.9kISC0.0.2

Polyfill for Function.prototype.bind

phantomjs, bind, polyfill

readme

Function.prototype.bind polyfill for PhantomJS

This is a polyfill for function.prototype.bind which is missing from PhantomJS.

Installation

npm install --save-dev phantomjs-polyfill

Usage

require('phantomjs-polyfill')

Usage with Karma

Include the polyfill directly in the files list of your karma.conf ` ... files: [ './node_modules/phantomjs-polyfill/bind-polyfill.js', ... ] ...