Index: test/mjsunit/regress/regress-1980.js |
diff --git a/test/mjsunit/regress/regress-1980.js b/test/mjsunit/regress/regress-1980.js |
index d87ff45074576a9bbe988a20a22c9edc70590214..e1e492b8839d71948b7b07f8a9e33dc0379591c5 100644 |
--- a/test/mjsunit/regress/regress-1980.js |
+++ b/test/mjsunit/regress/regress-1980.js |
@@ -27,6 +27,8 @@ |
// See: http://code.google.com/p/v8/issues/detail?id=1980 |
+var msg = "Method Error.prototype.toString called on incompatible receiver "; |
+ |
var invalid_this = [ "invalid", 23, undefined, null ]; |
for (var i = 0; i < invalid_this.length; i++) { |
var exception = false; |
@@ -34,7 +36,7 @@ for (var i = 0; i < invalid_this.length; i++) { |
Error.prototype.toString.call(invalid_this[i]); |
} catch (e) { |
exception = true; |
- assertEquals("Error.prototype.toString called on non-object", e.message); |
+ assertEquals(msg + invalid_this[i], e.message); |
} |
assertTrue(exception); |
} |