Skip to content

Commit

Permalink
Fix Set specs on Firefox 28.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed Mar 19, 2014
1 parent f0539f3 commit 6e12ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/specs/set_spec.js
Expand Up @@ -13,8 +13,8 @@ JS.ENV.SetSpec = JS.Test.describe(sets.Set, function() { with(this) {
define("assertSetEqual", function(expected, actual) {
this.__wrapAssertion__(function() {
this.assertKindOf( sets.Set, actual )
if (expected.entries) expected = expected.entries()
if (actual.entries) actual = actual.entries()
if (!(expected instanceof Array)) expected = expected.entries()
if (!(actual instanceof Array)) actual = actual.entries()
this.assertEqual( expected.sort(), actual.sort() )
})
})
Expand Down

0 comments on commit 6e12ad7

Please sign in to comment.