PhantomJS polyfills for Function.prototype.bind and Element.prototype.remove

Usage no npm install needed!

<script type="module">
  import phantomjsPolyfills from '';


PhantomJS polyfills (For phantomJS 1.x)

Build Status PhantomJS is widely used for testing web-based applications. This lib contains polyfills for the following functions that PhantomJS@1.x does not support natively:

  • Function.prototype.bind
  • Element.prototype.remove

Note: PhantomJS2.x has supported those method natively. And the PhantomJS team don't recommend PhantomJS 1.x anymore

Get started


npm install -D phantomjs-polyfills

Use with Karma

Add the polyfills in your karma.config.js

files: [
    {pattern: './node_modules/phantomjs-polyfill/polyfills/*.js', included: true},