Index: test/mjsunit/error-tostring-omit.js |
diff --git a/test/mjsunit/error-tostring-omit.js b/test/mjsunit/error-tostring-omit.js |
index 9ff43fa9b2e521c51ce887f6eac184df84e2efe2..48e1399d7a1d16df31086a7c75b70c1ec6f2cd34 100644 |
--- a/test/mjsunit/error-tostring-omit.js |
+++ b/test/mjsunit/error-tostring-omit.js |
@@ -42,7 +42,7 @@ assertTrue(veryLongString().length > 256); |
var re = /...<omitted>.../; |
try { |
- Number.prototype.toFixed.call(veryLongString); |
+ Date.prototype.setDate.call(veryLongString); |
} catch (e) { |
assertTrue(e.message.length < 256); |
assertTrue(re.test(e.message)); |