mocha-phantomjs-core
Advanced tools
Comparing version 1.3.0 to 1.3.1
(function(){ | ||
// A shim for non ES5 supporting browsers, like PhantomJS. Lovingly inspired by: | ||
// http://www.angrycoding.com/2011/09/to-bind-or-not-to-bind-that-is-in.html | ||
if (!('bind' in Function.prototype)) { | ||
Function.prototype.bind = function() { | ||
var funcObj = this; | ||
var extraArgs = Array.prototype.slice.call(arguments); | ||
var thisObj = extraArgs.shift(); | ||
return function() { | ||
return funcObj.apply(thisObj, extraArgs.concat(Array.prototype.slice.call(arguments))); | ||
}; | ||
}; | ||
if (typeof Function.prototype.bind !== 'function') { | ||
Function.prototype.bind = function bind(obj) { | ||
var args = Array.prototype.slice.call(arguments, 1), | ||
self = this, | ||
nop = function() {}, | ||
bound = function() { | ||
return self.apply( | ||
this instanceof nop ? this : (obj || {}), args.concat( | ||
Array.prototype.slice.call(arguments) | ||
) | ||
) | ||
} | ||
nop.prototype = this.prototype || {} | ||
bound.prototype = new nop() | ||
return bound | ||
} | ||
} | ||
@@ -15,0 +20,0 @@ |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Nathan Black <nathan@nathanblack.org> (https://github.com/nathanboktae)", | ||
@@ -15,0 +15,0 @@ "licenses": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
303
0
21612
8