Index: test/mjsunit/messages.js |
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js |
index f6b82ec73a4cff34e337eeb77fe6d00cb662886a..f55bad3dbb56cb7b67b48fa724151ec33b808294 100644 |
--- a/test/mjsunit/messages.js |
+++ b/test/mjsunit/messages.js |
@@ -136,9 +136,9 @@ test(function() { |
// kIncompatibleMethodReceiver |
test(function() { |
- RegExp.prototype.compile.call(RegExp.prototype); |
-}, "Method RegExp.prototype.compile called on incompatible receiver " + |
- "[object RegExp]", TypeError); |
+ Set.prototype.add.call([]); |
+}, "Method Set.prototype.add called on incompatible receiver [object Array]", |
+TypeError); |
// kInstanceofFunctionExpected |
test(function() { |