Index: test/mjsunit/regress/regress-399.js |
diff --git a/test/mjsunit/regress/regress-399.js b/test/mjsunit/regress/regress-399.js |
index 2ee998ba35e0a410e4082d3884701b4a330d2384..6c8eab545b8ab7bbabcaf4663460b4067be02860 100644 |
--- a/test/mjsunit/regress/regress-399.js |
+++ b/test/mjsunit/regress/regress-399.js |
@@ -28,5 +28,5 @@ |
// See http://code.google.com/p/v8/issues/detail?id=399 |
var date = new Date(1.009804e12); |
-var year = String(date).match(/.*(200\d)/)[1]; |
+var year = Number(String(date).match(/.*(200\d)/)[1]); |
assertEquals(year, date.getFullYear()); |