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