From d906d56505f8c77e0f3015800f4f3a7f928db9f6 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 27 Mar 2014 22:16:31 -0700 Subject: [PATCH] Add `_.keys` test for string objects. --- test/test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test.js b/test/test.js index fd6ad7909..7b65997c3 100644 --- a/test/test.js +++ b/test/test.js @@ -5134,6 +5134,10 @@ } }); + test('should work with string objects (test in IE < 9)', 1, function() { + deepEqual(_.keys(Object('abc')), ['0', '1', '2']); + }); + test('fixes the JScript [[DontEnum]] bug (test in IE < 9)', 2, function() { function Foo() {} Foo.prototype.a = 1;