OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |