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

Unified Diff: src/messages.h

Issue 1399693003: Emit better error message about writable properties (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index 0282c6fb7d7e4495d902e2b0635e32b59b3a724f..ae4e2fcea6fde00fcc0142ab1deb5bf1fdfea032 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -235,8 +235,8 @@ class CallSite {
T(SimdToNumber, "Cannot convert a SIMD value to a number") \
T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \
T(ValueAndAccessor, \
- "Invalid property. A property cannot both have accessors and be " \
- "writable or have a value, %") \
+ "Invalid property descriptor. A property descriptor cannot both have " \
+ "accessors and specify the value or writability of the property, %") \
rossberg 2015/10/12 09:00:14 The test seems a bit redundant now. Can we simplif
T(VarRedeclaration, "Identifier '%' has already been declared") \
T(WithExpression, "% has no properties") \
T(WrongArgs, "%: Arguments list has wrong type") \
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698