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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 T(ReadGlobalReferenceThroughProxy, "Trying to access '%' through proxy") \ | 285 T(ReadGlobalReferenceThroughProxy, "Trying to access '%' through proxy") \ |
286 T(RedefineDisallowed, "Cannot redefine property: %") \ | 286 T(RedefineDisallowed, "Cannot redefine property: %") \ |
287 T(RedefineExternalArray, \ | 287 T(RedefineExternalArray, \ |
288 "Cannot redefine a property of an object with external array elements") \ | 288 "Cannot redefine a property of an object with external array elements") \ |
289 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ | 289 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ |
290 T(RegExpFlags, \ | 290 T(RegExpFlags, \ |
291 "Cannot supply flags when constructing one RegExp from another") \ | 291 "Cannot supply flags when constructing one RegExp from another") \ |
292 T(RegExpNonObject, "% getter called on non-object %") \ | 292 T(RegExpNonObject, "% getter called on non-object %") \ |
293 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ | 293 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ |
294 T(ReinitializeIntl, "Trying to re-initialize % object.") \ | 294 T(ReinitializeIntl, "Trying to re-initialize % object.") \ |
295 T(ResolvedOptionsCalledOnNonObject, \ | |
296 "resolvedOptions method called on a non-object or on a object that is " \ | |
297 "not Intl.%.") \ | |
298 T(ResolverNotAFunction, "Promise resolver % is not a function") \ | 295 T(ResolverNotAFunction, "Promise resolver % is not a function") \ |
299 T(RestrictedFunctionProperties, \ | 296 T(RestrictedFunctionProperties, \ |
300 "'caller' and 'arguments' are restricted function properties and cannot " \ | 297 "'caller' and 'arguments' are restricted function properties and cannot " \ |
301 "be accessed in this context.") \ | 298 "be accessed in this context.") \ |
302 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \ | 299 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \ |
303 T(StaticPrototype, "Classes may not have static property named prototype") \ | 300 T(StaticPrototype, "Classes may not have static property named prototype") \ |
304 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \ | 301 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \ |
305 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ | 302 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ |
306 T(StrictPoisonPill, \ | 303 T(StrictPoisonPill, \ |
307 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ | 304 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 515 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
519 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 516 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
520 Handle<Object> data); | 517 Handle<Object> data); |
521 }; | 518 }; |
522 | 519 |
523 | 520 |
524 } // namespace internal | 521 } // namespace internal |
525 } // namespace v8 | 522 } // namespace v8 |
526 | 523 |
527 #endif // V8_MESSAGES_H_ | 524 #endif // V8_MESSAGES_H_ |
OLD | NEW |