summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/error-tostring-omit.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/error-tostring-omit.js')
-rw-r--r--deps/v8/test/mjsunit/error-tostring-omit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/error-tostring-omit.js b/deps/v8/test/mjsunit/error-tostring-omit.js
index 9ff43fa9b2..48e1399d7a 100644
--- a/deps/v8/test/mjsunit/error-tostring-omit.js
+++ b/deps/v8/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));