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

Unified Diff: test/mjsunit/messages.js

Issue 2686233008: Unify TypeError messages (Closed)
Patch Set: Fix test expectations Created 3 years, 10 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 | « src/messages.h ('k') | test/webkit/preventExtensions-expected.txt » ('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 30abc197e9b941bc80a038633409af23a1996dcb..e239c0aa02c9cf198dcaaf7e448841609ac241eb 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -115,7 +115,7 @@ test(function() {
var o = {};
Object.preventExtensions(o);
Object.defineProperty(o, "x", { value: 1 });
-}, "Cannot define property:x, object is not extensible.", TypeError);
+}, "Cannot define property x, object is not extensible", TypeError);
// kFirstArgumentNotRegExp
test(function() {
@@ -242,7 +242,7 @@ test(function() {
var o = {};
Object.freeze(o);
o.a = 1;
-}, "Can't add property a, object is not extensible", TypeError);
+}, "Cannot add property a, object is not extensible", TypeError);
// kObjectSetterExpectingFunction
test(function() {
« no previous file with comments | « src/messages.h ('k') | test/webkit/preventExtensions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698