Index: test/mjsunit/third_party/object-keys.js |
diff --git a/test/mjsunit/third_party/object-keys.js b/test/mjsunit/third_party/object-keys.js |
index c8003745c4b1c5ccfb4b2b04e0f9eca72594f3f7..d09265c6f738a3729bd8b75ad80a1b304408e6c9 100644 |
--- a/test/mjsunit/third_party/object-keys.js |
+++ b/test/mjsunit/third_party/object-keys.js |
@@ -31,8 +31,8 @@ |
// Based on LayoutTests/fast/js/Object-keys.html |
-assertEquals(Object.keys(2), []); |
-assertEquals(Object.keys("foo"), ["0", "1", "2"]); |
+assertThrows(function () { Object.keys(2) }, TypeError); |
+assertThrows(function () { Object.keys("foo") }, TypeError); |
assertThrows(function () { Object.keys(null) }, TypeError); |
assertThrows(function () { Object.keys(undefined) }, TypeError); |