Index: test/mjsunit/harmony/to-number.js |
diff --git a/test/mjsunit/harmony/to-number.js b/test/mjsunit/harmony/to-number.js |
index 7125766840babebb57fa9e9b14e6797635d36f89..6dc4db59a27c6ef968127b30be04f3047dc66194 100644 |
--- a/test/mjsunit/harmony/to-number.js |
+++ b/test/mjsunit/harmony/to-number.js |
@@ -55,3 +55,7 @@ var d = { |
}; |
assertEquals(987654321, %ToNumber(d)); |
assertEquals(987654321, %_ToNumber(d)); |
+ |
+var e = new Date(0); |
+assertEquals(0, %ToNumber(e)); |
+assertEquals(0, %_ToNumber(e)); |