Index: test/mjsunit/error-tostring-omit.js |
diff --git a/test/mjsunit/error-tostring-omit.js b/test/mjsunit/error-tostring-omit.js |
index 111adfc212184c1c2157ee0c35a5c19cd9a5de21..9ff43fa9b2e521c51ce887f6eac184df84e2efe2 100644 |
--- a/test/mjsunit/error-tostring-omit.js |
+++ b/test/mjsunit/error-tostring-omit.js |
@@ -37,23 +37,15 @@ function veryLongString() { |
"Nam accumsan dignissim turpis a turpis duis."; |
} |
+assertTrue(veryLongString().length > 256); |
-var re = /omitted/; |
+var re = /...<omitted>.../; |
try { |
- veryLongString.nonexistentMethod(); |
+ Number.prototype.toFixed.call(veryLongString); |
} catch (e) { |
- assertTrue(e.message.length < 350); |
- // TODO(verwaest): Proper error message. |
- // assertTrue(re.test(e.message)); |
-} |
- |
-try { |
- veryLongString().nonexistentMethod(); |
-} catch (e) { |
- assertTrue(e.message.length < 350); |
- // TODO(verwaest): Proper error message. |
- // assertTrue(re.test(e.message)); |
+ assertTrue(e.message.length < 256); |
+ assertTrue(re.test(e.message)); |
} |
try { |