From 0414bae820be375a09c8057ea946194c4db73c73 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 17 Sep 2013 19:30:01 -0700 Subject: [PATCH] Avoid creating an enumerable Function#bind in test/index.html. --- test/index.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/index.html b/test/index.html index f3a08618e..a2453ecb6 100644 --- a/test/index.html +++ b/test/index.html @@ -38,22 +38,25 @@ var lodashBadShim = window._; // restore native methods - delete Array.isArray; - delete Function.prototype.bind; - delete Object.defineProperty; - delete Object.keys; - if (Array._isArray) { Array.isArray = Array._isArray; + } else { + delete Array.isArray; } if (Function.prototype._bind) { Function.prototype.bind = Function.prototype._bind; + } else { + delete Function.prototype.bind; } if (Object._defineProperty) { Object.defineProperty = Object._defineProperty; + } else { + delete Object.defineProperty; } if (Object._keys) { Object.keys = Object._keys; + } else { + delete Object.keys; } delete Array._isArray; delete Function.prototype._bind;