Index: test/mjsunit/regress/regress-1980.js |
diff --git a/test/mjsunit/regress/regress-1980.js b/test/mjsunit/regress/regress-1980.js |
index 49dfd063bae26bd704b44024878d12ac28d62f1f..d87ff45074576a9bbe988a20a22c9edc70590214 100644 |
--- a/test/mjsunit/regress/regress-1980.js |
+++ b/test/mjsunit/regress/regress-1980.js |
@@ -34,7 +34,7 @@ for (var i = 0; i < invalid_this.length; i++) { |
Error.prototype.toString.call(invalid_this[i]); |
} catch (e) { |
exception = true; |
- assertTrue("called_on_non_object" == e.type); |
+ assertEquals("Error.prototype.toString called on non-object", e.message); |
} |
assertTrue(exception); |
} |