Index: test/mjsunit/regress/regress-1980.js |
diff --git a/test/mjsunit/regress/regress-1980.js b/test/mjsunit/regress/regress-1980.js |
index e1e492b8839d71948b7b07f8a9e33dc0379591c5..d87ff45074576a9bbe988a20a22c9edc70590214 100644 |
--- a/test/mjsunit/regress/regress-1980.js |
+++ b/test/mjsunit/regress/regress-1980.js |
@@ -27,8 +27,6 @@ |
// 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; |
@@ -36,7 +34,7 @@ |
Error.prototype.toString.call(invalid_this[i]); |
} catch (e) { |
exception = true; |
- assertEquals(msg + invalid_this[i], e.message); |
+ assertEquals("Error.prototype.toString called on non-object", e.message); |
} |
assertTrue(exception); |
} |