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/'"); |