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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 T(ApplyNonFunction, \ | 85 T(ApplyNonFunction, \ |
86 "Function.prototype.apply was called on %, which is a % and not a " \ | 86 "Function.prototype.apply was called on %, which is a % and not a " \ |
87 "function") \ | 87 "function") \ |
88 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ | 88 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ |
89 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ | 89 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ |
90 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \ | 90 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \ |
91 T(CalledNonCallable, "% is not a function") \ | 91 T(CalledNonCallable, "% is not a function") \ |
92 T(CalledOnNonObject, "% called on non-object") \ | 92 T(CalledOnNonObject, "% called on non-object") \ |
93 T(CalledOnNullOrUndefined, "% called on null or undefined") \ | 93 T(CalledOnNullOrUndefined, "% called on null or undefined") \ |
94 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ | 94 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ |
| 95 T(CannotPreventExt, "Cannot prevent extensions") \ |
95 T(CannotPreventExtExternalArray, \ | 96 T(CannotPreventExtExternalArray, \ |
96 "Cannot prevent extension of an object with external array elements") \ | 97 "Cannot prevent extension of an object with external array elements") \ |
97 T(CircularStructure, "Converting circular structure to JSON") \ | 98 T(CircularStructure, "Converting circular structure to JSON") \ |
98 T(ConstAssign, "Assignment to constant variable.") \ | 99 T(ConstAssign, "Assignment to constant variable.") \ |
99 T(ConstructorNonCallable, \ | 100 T(ConstructorNonCallable, \ |
100 "Class constructors cannot be invoked without 'new'") \ | 101 "Class constructors cannot be invoked without 'new'") \ |
101 T(ConstructorNotFunction, "Constructor % requires 'new'") \ | 102 T(ConstructorNotFunction, "Constructor % requires 'new'") \ |
102 T(CurrencyCode, "Currency code is required with currency style.") \ | 103 T(CurrencyCode, "Currency code is required with currency style.") \ |
103 T(DataViewNotArrayBuffer, \ | 104 T(DataViewNotArrayBuffer, \ |
104 "First argument to DataView constructor must be an ArrayBuffer") \ | 105 "First argument to DataView constructor must be an ArrayBuffer") \ |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 488 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
488 Isolate* isolate, LookupIterator* property_lookup, | 489 Isolate* isolate, LookupIterator* property_lookup, |
489 Handle<String> default_value); | 490 Handle<String> default_value); |
490 | 491 |
491 List<Handle<JSObject> > visited_; | 492 List<Handle<JSObject> > visited_; |
492 }; | 493 }; |
493 } // namespace internal | 494 } // namespace internal |
494 } // namespace v8 | 495 } // namespace v8 |
495 | 496 |
496 #endif // V8_MESSAGES_H_ | 497 #endif // V8_MESSAGES_H_ |
OLD | NEW |