From 9c79259e9c3c677ef1b6313b62527e50ad4735d4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 15 May 2012 11:26:56 -0400 Subject: [PATCH] Add JScript [[DontEnum]] _.size unit test. Former-commit-id: 734b1943bb7c5f9111f170afccdf0b169fb2cca7 --- test/test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test.js b/test/test.js index e6fd38965..b0cfebc0d 100644 --- a/test/test.js +++ b/test/test.js @@ -344,6 +344,10 @@ test('should detect the size of a string value', function() { equal(_.size('abc'), 3); }); + + test('fixes the JScript [[DontEnum]] bug (test in IE < 9)', function() { + equal(_.size(shadowed), 7); + }); }()); /*--------------------------------------------------------------------------*/