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

Unified Diff: test/mjsunit/messages.js

Issue 1399693003: Emit better error message about writable properties (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase onto newer source 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/messages.h ('k') | test/webkit/Object-defineProperties-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 bb0d0e664a8343a25d23f17892b642b9160e4fa6..cb1d016ab09c17383e206f5f4847dd9bcf06e6f8 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -332,8 +332,8 @@ test(function() {
// kValueAndAccessor
test(function() {
Object.defineProperty({}, "x", { get: function(){}, value: 1});
-}, "Invalid property. A property cannot both have accessors and be " +
- "writable or have a value, #<Object>", TypeError);
+}, "Invalid property descriptor. Cannot both specify accessors " +
+ "and a value or writable attribute, #<Object>", TypeError);
// kWithExpression
test(function() {
« no previous file with comments | « src/messages.h ('k') | test/webkit/Object-defineProperties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698