mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Fix test typo in test/index.html.
This commit is contained in:
@@ -51,12 +51,12 @@
|
|||||||
Function.prototype._method = function() {};
|
Function.prototype._method = function() {};
|
||||||
|
|
||||||
// allow bypassing native checks
|
// allow bypassing native checks
|
||||||
setProperty(Function.prototype, '_toString', _fnToString);
|
|
||||||
setProperty(Function.prototype, 'toString', (function() {
|
setProperty(Function.prototype, 'toString', (function() {
|
||||||
var func = Function.prototype.toString;
|
|
||||||
function toString() {
|
function toString() {
|
||||||
return this.toString !== toString ? this.toString() : func.call(this);
|
return this.toString !== toString ? this.toString() : func.call(this);
|
||||||
}
|
}
|
||||||
|
var func = Function.prototype.toString;
|
||||||
|
setProperty(Function.prototype, '_toString', func);
|
||||||
return toString;
|
return toString;
|
||||||
}()));
|
}()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user