Skip to content

Commit

Permalink
Array.from: adding some more empty cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 6, 2014
1 parent 13de60f commit 22fcfec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ var runArrayTests = function() {
(function() {
expect(Array.from(arguments)).to.eql([]);
})();
expect(Array.from([])).to.eql([]);
expect(Array.from({})).to.eql([]);
expect(Array.from({ a: 1 })).to.eql([]);
});

it('should work with other constructors', function() {
Expand Down

0 comments on commit 22fcfec

Please sign in to comment.