Index: test/mjsunit/harmony/symbols.js |
diff --git a/test/mjsunit/harmony/symbols.js b/test/mjsunit/harmony/symbols.js |
index 1d98f548a45f57d0a27f14841928964c1c1bffd4..9d6c1c63f6d65818e99ca0ba98620bfcc1919577 100644 |
--- a/test/mjsunit/harmony/symbols.js |
+++ b/test/mjsunit/harmony/symbols.js |
@@ -232,7 +232,7 @@ function TestKeyHas() { |
function TestKeyEnum(obj) { |
for (var name in obj) { |
- assertTrue(typeof name !== "symbol") |
+ assertEquals("string", typeof name) |
} |
} |
@@ -241,19 +241,9 @@ function TestKeyNames(obj) { |
assertEquals(0, Object.keys(obj).length) |
var names = Object.getOwnPropertyNames(obj) |
- assertTrue(symbols.length <= names.length) |
- // TODO(rossberg): once we have iterators, the following would be: |
- // var expected = new Set(symbols) |
- var expected = new Set |
- for (var i = 0; i < symbols.length; ++i) expected.add(symbols[i]) |
- for (var i = 0; i < names.length; ++i) { |
- var name = names[i] |
- if (typeof name === 'symbol') { |
- assertTrue(expected.has(name)) |
- expected.delete(name) |
- } |
+ for (var i in names) { |
+ assertEquals("string", typeof names[i]) |
} |
- assertEquals(0, expected.size) |
} |