Index: test/mjsunit/harmony/symbols.js |
diff --git a/test/mjsunit/harmony/symbols.js b/test/mjsunit/harmony/symbols.js |
index b35d950981ba1f119cbc71a88a8eb21eca9f9a38..4ed44abc8f10daedf1f8d4b91f4b62d80c64004c 100644 |
--- a/test/mjsunit/harmony/symbols.js |
+++ b/test/mjsunit/harmony/symbols.js |
@@ -162,26 +162,14 @@ function TestKeyHas() { |
function TestKeyEnum(obj) { |
- // TODO(rossberg): symbols should not show up at all in for-in. |
- var found = []; |
- names: for (var name in obj) { |
- for (var i in symbols) { |
- if (name === symbols[i]) { |
- found[i] = true; |
- continue names; |
- } |
- } |
- } |
- // All even symbols should have been enumerated. |
- for (var i = 0; i < symbols.length; i += 2) { |
- assertTrue(i in found) |
+ for (var name in obj) { |
+ assertFalse(%_IsSymbol(name)) |
} |
} |
function TestKeyKeys(obj) { |
- // TODO(rossberg): symbols should not be returned by Object.keys. |
- assertEquals(symbols.length / 2, Object.keys(obj).length) |
+ assertEquals(0, Object.keys(obj).length) |
assertTrue(symbols.length <= Object.getOwnPropertyNames(obj).length) |
} |