phantomjs-polyfill

Polyfill for Function.prototype.bind

ISC 2 个版本
安装
npm install phantomjs-polyfill
yarn add phantomjs-polyfill
pnpm add phantomjs-polyfill
bun add phantomjs-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',
  ...
]
...
版本列表
0.0.2 2016-02-26
0.0.1 2015-01-27