Skip to content

Commit

Permalink
Add JScript [[DontEnum]] _.size unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed May 15, 2012
1 parent 238903b commit dc91f0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test.js
Expand Up @@ -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);
});
}());

/*--------------------------------------------------------------------------*/
Expand Down

0 comments on commit dc91f0c

Please sign in to comment.