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

Unified Diff: test/mjsunit/messages.js

Issue 1381083004: Improving error messages when adding properties to non JSObject receiver in (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unused branch 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/harmony/super.js ('k') | test/webkit/fast/js/Object-defineProperty-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 b8c3114d3685574d3236df28f46bc8bfdffb65c4..bb0d0e664a8343a25d23f17892b642b9160e4fa6 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -301,7 +301,7 @@ test(function() {
test(function() {
"use strict";
(1).a = 1;
-}, "Cannot assign to read only property 'a' of 1", TypeError);
+}, "Cannot create property 'a' on number '1'", TypeError);
// kStrongImplicitCast
test(function() {
« no previous file with comments | « test/mjsunit/harmony/super.js ('k') | test/webkit/fast/js/Object-defineProperty-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698