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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 /* TypeError */ \ | 261 /* TypeError */ \ |
262 T(ApplyNonFunction, \ | 262 T(ApplyNonFunction, \ |
263 "Function.prototype.apply was called on %, which is a % and not a " \ | 263 "Function.prototype.apply was called on %, which is a % and not a " \ |
264 "function") \ | 264 "function") \ |
265 T(ArrayBufferTooShort, \ | 265 T(ArrayBufferTooShort, \ |
266 "Derived ArrayBuffer constructor created a buffer which was too small") \ | 266 "Derived ArrayBuffer constructor created a buffer which was too small") \ |
267 T(ArrayBufferSpeciesThis, \ | 267 T(ArrayBufferSpeciesThis, \ |
268 "ArrayBuffer subclass returned this from species constructor") \ | 268 "ArrayBuffer subclass returned this from species constructor") \ |
269 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ | 269 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ |
270 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ | 270 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ |
271 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \ | |
272 T(CalledNonCallable, "% is not a function") \ | 271 T(CalledNonCallable, "% is not a function") \ |
273 T(CalledOnNonObject, "% called on non-object") \ | 272 T(CalledOnNonObject, "% called on non-object") \ |
274 T(CalledOnNullOrUndefined, "% called on null or undefined") \ | 273 T(CalledOnNullOrUndefined, "% called on null or undefined") \ |
275 T(CallSiteExpectsFunction, \ | 274 T(CallSiteExpectsFunction, \ |
276 "CallSite expects wasm object as first or function as second argument, " \ | 275 "CallSite expects wasm object as first or function as second argument, " \ |
277 "got <%, %>") \ | 276 "got <%, %>") \ |
278 T(CallSiteMethod, "CallSite method % expects CallSite as receiver") \ | 277 T(CallSiteMethod, "CallSite method % expects CallSite as receiver") \ |
279 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ | 278 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ |
280 T(CannotPreventExt, "Cannot prevent extensions") \ | 279 T(CannotPreventExt, "Cannot prevent extensions") \ |
281 T(CannotFreezeArrayBufferView, \ | 280 T(CannotFreezeArrayBufferView, \ |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 T(SymbolToString, "Cannot convert a Symbol value to a string") \ | 478 T(SymbolToString, "Cannot convert a Symbol value to a string") \ |
480 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ | 479 T(SimdToNumber, "Cannot convert a SIMD value to a number") \ |
481 T(ThrowMethodMissing, "The iterator does not provide a 'throw' method.") \ | 480 T(ThrowMethodMissing, "The iterator does not provide a 'throw' method.") \ |
482 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ | 481 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ |
483 T(ValueAndAccessor, \ | 482 T(ValueAndAccessor, \ |
484 "Invalid property descriptor. Cannot both specify accessors and a value " \ | 483 "Invalid property descriptor. Cannot both specify accessors and a value " \ |
485 "or writable attribute, %") \ | 484 "or writable attribute, %") \ |
486 T(VarRedeclaration, "Identifier '%' has already been declared") \ | 485 T(VarRedeclaration, "Identifier '%' has already been declared") \ |
487 T(WrongArgs, "%: Arguments list has wrong type") \ | 486 T(WrongArgs, "%: Arguments list has wrong type") \ |
488 /* ReferenceError */ \ | 487 /* ReferenceError */ \ |
489 T(NonMethod, "'super' is referenced from non-method") \ | |
490 T(NotDefined, "% is not defined") \ | 488 T(NotDefined, "% is not defined") \ |
491 T(UnsupportedSuper, "Unsupported reference to 'super'") \ | 489 T(UnsupportedSuper, "Unsupported reference to 'super'") \ |
492 /* RangeError */ \ | 490 /* RangeError */ \ |
493 T(DateRange, "Provided date is not in valid range.") \ | 491 T(DateRange, "Provided date is not in valid range.") \ |
494 T(ExpectedTimezoneID, \ | 492 T(ExpectedTimezoneID, \ |
495 "Expected Area/Location(/Location)* for time zone, got %") \ | 493 "Expected Area/Location(/Location)* for time zone, got %") \ |
496 T(ExpectedLocation, \ | 494 T(ExpectedLocation, \ |
497 "Expected letters optionally connected with underscores or hyphens for " \ | 495 "Expected letters optionally connected with underscores or hyphens for " \ |
498 "a location, got %") \ | 496 "a location, got %") \ |
499 T(InvalidArrayBufferLength, "Invalid array buffer length") \ | 497 T(InvalidArrayBufferLength, "Invalid array buffer length") \ |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 const MessageLocation* loc, | 728 const MessageLocation* loc, |
731 Handle<Object> message_obj, | 729 Handle<Object> message_obj, |
732 v8::Local<v8::Value> api_exception_obj); | 730 v8::Local<v8::Value> api_exception_obj); |
733 }; | 731 }; |
734 | 732 |
735 | 733 |
736 } // namespace internal | 734 } // namespace internal |
737 } // namespace v8 | 735 } // namespace v8 |
738 | 736 |
739 #endif // V8_MESSAGES_H_ | 737 #endif // V8_MESSAGES_H_ |
OLD | NEW |