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

Unified Diff: test/mjsunit/harmony/super.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 | « src/objects.cc ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/super.js
diff --git a/test/mjsunit/harmony/super.js b/test/mjsunit/harmony/super.js
index 9242dd51b815366b6aafb2f28e8d3602fbfad67d..651f3dca3f2da6617ad774815d61b9cc941d4a90 100644
--- a/test/mjsunit/harmony/super.js
+++ b/test/mjsunit/harmony/super.js
@@ -1076,7 +1076,7 @@
}
assertInstanceof(ex, TypeError);
assertEquals(
- "Cannot assign to read only property 'ownReadOnly' of #<Base>",
+ "Cannot assign to read only property 'ownReadOnly' of object '#<Base>'",
ex.message);
assertEquals(42, this.ownReadOnly);
@@ -1323,7 +1323,7 @@ function TestKeyedSetterCreatingOwnPropertiesNonConfigurable(
assertInstanceof(ex, TypeError);
assertEquals(
"Cannot assign to read only property '" + ownReadOnly +
- "' of #<Base>",
+ "' of object '#<Base>'",
ex.message);
assertEquals(42, this[ownReadOnly]);
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698