Index: test/mjsunit/date.js |
diff --git a/test/mjsunit/date.js b/test/mjsunit/date.js |
index fa43cbb43157eb3b8450ee2021492da4302913f9..3e153aba7f9113e113783815b4a34732b16468f0 100644 |
--- a/test/mjsunit/date.js |
+++ b/test/mjsunit/date.js |
@@ -187,6 +187,12 @@ d = new Date(1969, 12, 1, Infinity); |
assertTrue(isNaN(d.getTime())); |
d = new Date(1969, 12, 1, -Infinity); |
assertTrue(isNaN(d.getTime())); |
+d = new Date(1969, 12, 1, 0); |
+d.setTime(Math.pow(2, 64)); |
+assertTrue(isNaN(d.getTime())); |
+d = new Date(1969, 12, 1, 0); |
+d.setTime(Math.pow(-2, 64)); |
+assertTrue(isNaN(d.getTime())); |
// Test creation with obscure date values. |