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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 "On strong object %, redefining writable, non-configurable property '%' " \ 228 "On strong object %, redefining writable, non-configurable property '%' " \
229 "to be non-writable is deprecated") \ 229 "to be non-writable is deprecated") \
230 T(StrongSetProto, \ 230 T(StrongSetProto, \
231 "On strong object %, redefining the internal prototype is deprecated") \ 231 "On strong object %, redefining the internal prototype is deprecated") \
232 T(SymbolKeyFor, "% is not a symbol") \ 232 T(SymbolKeyFor, "% is not a symbol") \
233 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ 233 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \
234 T(SymbolToString, "Cannot convert a Symbol value to a string") \ 234 T(SymbolToString, "Cannot convert a Symbol value to a string") \
235 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ 235 T(SimdToNumber, "Cannot convert a SIMD value to a number") \
236 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ 236 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \
237 T(ValueAndAccessor, \ 237 T(ValueAndAccessor, \
238 "Invalid property. A property cannot both have accessors and be " \ 238 "Invalid property descriptor. A property descriptor cannot both have " \
239 "writable or have a value, %") \ 239 "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
240 T(VarRedeclaration, "Identifier '%' has already been declared") \ 240 T(VarRedeclaration, "Identifier '%' has already been declared") \
241 T(WithExpression, "% has no properties") \ 241 T(WithExpression, "% has no properties") \
242 T(WrongArgs, "%: Arguments list has wrong type") \ 242 T(WrongArgs, "%: Arguments list has wrong type") \
243 /* ReferenceError */ \ 243 /* ReferenceError */ \
244 T(NonMethod, "'super' is referenced from non-method") \ 244 T(NonMethod, "'super' is referenced from non-method") \
245 T(NotDefined, "% is not defined") \ 245 T(NotDefined, "% is not defined") \
246 T(StrongSuperCallMissing, \ 246 T(StrongSuperCallMissing, \
247 "In strong mode, invoking the super constructor in a subclass is " \ 247 "In strong mode, invoking the super constructor in a subclass is " \
248 "required") \ 248 "required") \
249 T(StrongUnboundGlobal, \ 249 T(StrongUnboundGlobal, \
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 492 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
493 Isolate* isolate, LookupIterator* property_lookup, 493 Isolate* isolate, LookupIterator* property_lookup,
494 Handle<String> default_value); 494 Handle<String> default_value);
495 495
496 List<Handle<JSObject> > visited_; 496 List<Handle<JSObject> > visited_;
497 }; 497 };
498 } // namespace internal 498 } // namespace internal
499 } // namespace v8 499 } // namespace v8
500 500
501 #endif // V8_MESSAGES_H_ 501 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698