🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

phantomjs-function-bind-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phantomjs-function-bind-polyfill

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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)))();

Keywords

phantomjs

FAQs

Package last updated on 25 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts