mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Cleanup prototype references of built-ins and the _.isElement bizarro tests.
This commit is contained in:
@@ -51,7 +51,10 @@
|
||||
setProperty(Function.prototype, 'toString', (function() {
|
||||
function wrapper() {
|
||||
setProperty(Function.prototype, 'toString', fnToString);
|
||||
var result = this === Set ? this.toString() : fnToString.call(this);
|
||||
var result = (this === window.ArrayBuffer || this === window.Set)
|
||||
? this.toString()
|
||||
: fnToString.call(this);
|
||||
|
||||
setProperty(Function.prototype, 'toString', wrapper);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user