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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \ | 297 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \ |
298 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ | 298 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ |
299 T(StrictPoisonPill, \ | 299 T(StrictPoisonPill, \ |
300 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ | 300 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ |
301 "strict mode functions or the arguments objects for calls to them") \ | 301 "strict mode functions or the arguments objects for calls to them") \ |
302 T(StrictReadOnlyProperty, \ | 302 T(StrictReadOnlyProperty, \ |
303 "Cannot assign to read only property '%' of % '%'") \ | 303 "Cannot assign to read only property '%' of % '%'") \ |
304 T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \ | 304 T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \ |
305 T(StrongArity, \ | 305 T(StrongArity, \ |
306 "In strong mode, calling a function with too few arguments is deprecated") \ | 306 "In strong mode, calling a function with too few arguments is deprecated") \ |
307 T(StrongDeleteProperty, \ | |
308 "Deleting property '%' of strong object '%' is deprecated") \ | |
309 T(StrongExtendNull, "In strong mode, classes extending null are deprecated") \ | |
310 T(StrongImplicitConversion, \ | 307 T(StrongImplicitConversion, \ |
311 "In strong mode, implicit conversions are deprecated") \ | 308 "In strong mode, implicit conversions are deprecated") \ |
312 T(StrongRedefineDisallowed, \ | |
313 "On strong object %, redefining writable, non-configurable property '%' " \ | |
314 "to be non-writable is deprecated") \ | |
315 T(StrongSetProto, \ | |
316 "On strong object %, redefining the internal prototype is deprecated") \ | |
317 T(SymbolIteratorInvalid, \ | 309 T(SymbolIteratorInvalid, \ |
318 "Result of the Symbol.iterator method is not an object") \ | 310 "Result of the Symbol.iterator method is not an object") \ |
319 T(SymbolKeyFor, "% is not a symbol") \ | 311 T(SymbolKeyFor, "% is not a symbol") \ |
320 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ | 312 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ |
321 T(SymbolToString, "Cannot convert a Symbol value to a string") \ | 313 T(SymbolToString, "Cannot convert a Symbol value to a string") \ |
322 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ | 314 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ |
323 T(ThrowMethodMissing, "The iterator does not provide a 'throw' method.") \ | 315 T(ThrowMethodMissing, "The iterator does not provide a 'throw' method.") \ |
324 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ | 316 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ |
325 T(ValueAndAccessor, \ | 317 T(ValueAndAccessor, \ |
326 "Invalid property descriptor. Cannot both specify accessors and a value " \ | 318 "Invalid property descriptor. Cannot both specify accessors and a value " \ |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 553 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
562 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 554 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
563 Handle<Object> data); | 555 Handle<Object> data); |
564 }; | 556 }; |
565 | 557 |
566 | 558 |
567 } // namespace internal | 559 } // namespace internal |
568 } // namespace v8 | 560 } // namespace v8 |
569 | 561 |
570 #endif // V8_MESSAGES_H_ | 562 #endif // V8_MESSAGES_H_ |
OLD | NEW |