Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: test/webkit/toString-recursion.js

Issue 1510173002: Revert of Make Error.prototype.toString spec compliant; and fix various side-effect-free error printing metho… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/test262/test262.status ('k') | test/webkit/toString-recursion-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/toString-recursion.js
diff --git a/test/webkit/toString-recursion.js b/test/webkit/toString-recursion.js
index c0e68f3ecc0b16d51df37c2aa0ee2ef34b0af751..51e9f98c2d28665b9a969aa801aacad83c548856 100644
--- a/test/webkit/toString-recursion.js
+++ b/test/webkit/toString-recursion.js
@@ -28,5 +28,8 @@
// Array (elements)
shouldBe("var array = []; array[0] = array; array + ''", "''");
+// Error (name, message)
+shouldBe("var error = new Error; error.name = error; error.message = error; error + ''", "''");
+
// RegExp (source)
shouldBe("var regexp = /a/; regexp.source = regexp; regexp + ''", "'/a/'");
« no previous file with comments | « test/test262/test262.status ('k') | test/webkit/toString-recursion-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698