Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Set specs on Firefox 28.

  • Loading branch information...
commit 6e12ad7292a70c5505c15c7cc0c05d06d4fc633e 1 parent f0539f3
@jcoglan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/specs/set_spec.js
View
4 test/specs/set_spec.js
@@ -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() )
})
})
Please sign in to comment.
Something went wrong with that request. Please try again.