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

Unified Diff: test/mjsunit/regress/regress-1980.js

Issue 2142933003: Move Error methods to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Handle exception in GetProperty Created 4 years, 5 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/debug-function-scopes.js ('k') | test/mjsunit/regress/regress-crbug-599067.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « test/mjsunit/debug-function-scopes.js ('k') | test/mjsunit/regress/regress-crbug-599067.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698