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

Side by Side Diff: src/messages.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | src/objects.h » ('j') | 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 T(ResolverNotAFunction, "Promise resolver % is not a function") \ 206 T(ResolverNotAFunction, "Promise resolver % is not a function") \
207 T(RestrictedFunctionProperties, \ 207 T(RestrictedFunctionProperties, \
208 "'caller' and 'arguments' are restricted function properties and cannot " \ 208 "'caller' and 'arguments' are restricted function properties and cannot " \
209 "be accessed in this context.") \ 209 "be accessed in this context.") \
210 T(StaticPrototype, "Classes may not have static property named prototype") \ 210 T(StaticPrototype, "Classes may not have static property named prototype") \
211 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ 211 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \
212 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ 212 T(StrictDeleteProperty, "Cannot delete property '%' of %") \
213 T(StrictPoisonPill, \ 213 T(StrictPoisonPill, \
214 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ 214 "'caller', 'callee', and 'arguments' properties may not be accessed on " \
215 "strict mode functions or the arguments objects for calls to them") \ 215 "strict mode functions or the arguments objects for calls to them") \
216 T(StrictReadOnlyProperty, "Cannot assign to read only property '%' of %") \ 216 T(StrictReadOnlyProperty, \
217 "Cannot assign to read only property '%' of % '%'") \
218 T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \
217 T(StrongArity, \ 219 T(StrongArity, \
218 "In strong mode, calling a function with too few arguments is deprecated") \ 220 "In strong mode, calling a function with too few arguments is deprecated") \
219 T(StrongDeleteProperty, \ 221 T(StrongDeleteProperty, \
220 "Deleting property '%' of strong object '%' is deprecated") \ 222 "Deleting property '%' of strong object '%' is deprecated") \
221 T(StrongExtendNull, "In strong mode, classes extending null are deprecated") \ 223 T(StrongExtendNull, "In strong mode, classes extending null are deprecated") \
222 T(StrongImplicitConversion, \ 224 T(StrongImplicitConversion, \
223 "In strong mode, implicit conversions are deprecated") \ 225 "In strong mode, implicit conversions are deprecated") \
224 T(StrongRedefineDisallowed, \ 226 T(StrongRedefineDisallowed, \
225 "On strong object %, redefining writable, non-configurable property '%' " \ 227 "On strong object %, redefining writable, non-configurable property '%' " \
226 "to be non-writable is deprecated") \ 228 "to be non-writable is deprecated") \
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 489 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
488 Isolate* isolate, LookupIterator* property_lookup, 490 Isolate* isolate, LookupIterator* property_lookup,
489 Handle<String> default_value); 491 Handle<String> default_value);
490 492
491 List<Handle<JSObject> > visited_; 493 List<Handle<JSObject> > visited_;
492 }; 494 };
493 } // namespace internal 495 } // namespace internal
494 } // namespace v8 496 } // namespace v8
495 497
496 #endif // V8_MESSAGES_H_ 498 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698