Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1223)

Unified Diff: test/mjsunit/messages.js

Issue 1423993006: RegExp.prototype is an ordinary object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/es6/regexp-prototype.js ('k') | test/mjsunit/regress/regress-1217.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « test/mjsunit/es6/regexp-prototype.js ('k') | test/mjsunit/regress/regress-1217.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698