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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(CallSiteExpectsFunction, \ | 96 T(CallSiteExpectsFunction, \ |
97 "CallSite expects function as second argument, got %") \ | 97 "CallSite expects function as second argument, got %") \ |
98 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ | 98 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ |
99 T(CannotPreventExt, "Cannot prevent extensions") \ | 99 T(CannotPreventExt, "Cannot prevent extensions") \ |
100 T(CannotFreezeArrayBufferView, \ | 100 T(CannotFreezeArrayBufferView, \ |
101 "Cannot freeze array buffer views with elements") \ | 101 "Cannot freeze array buffer views with elements") \ |
102 T(CircularStructure, "Converting circular structure to JSON") \ | 102 T(CircularStructure, "Converting circular structure to JSON") \ |
| 103 T(ConstructAbstractClass, "Abstract class % not directly constructable") \ |
103 T(ConstAssign, "Assignment to constant variable.") \ | 104 T(ConstAssign, "Assignment to constant variable.") \ |
104 T(ConstructorNonCallable, \ | 105 T(ConstructorNonCallable, \ |
105 "Class constructor % cannot be invoked without 'new'") \ | 106 "Class constructor % cannot be invoked without 'new'") \ |
106 T(ConstructorNotFunction, "Constructor % requires 'new'") \ | 107 T(ConstructorNotFunction, "Constructor % requires 'new'") \ |
107 T(CurrencyCode, "Currency code is required with currency style.") \ | 108 T(CurrencyCode, "Currency code is required with currency style.") \ |
108 T(DataViewNotArrayBuffer, \ | 109 T(DataViewNotArrayBuffer, \ |
109 "First argument to DataView constructor must be an ArrayBuffer") \ | 110 "First argument to DataView constructor must be an ArrayBuffer") \ |
110 T(DateType, "this is not a Date object.") \ | 111 T(DateType, "this is not a Date object.") \ |
111 T(DebuggerFrame, "Debugger: Invalid frame index.") \ | 112 T(DebuggerFrame, "Debugger: Invalid frame index.") \ |
112 T(DebuggerType, "Debugger: Parameters have wrong types.") \ | 113 T(DebuggerType, "Debugger: Parameters have wrong types.") \ |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 539 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
539 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 540 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
540 Handle<Object> data); | 541 Handle<Object> data); |
541 }; | 542 }; |
542 | 543 |
543 | 544 |
544 } // namespace internal | 545 } // namespace internal |
545 } // namespace v8 | 546 } // namespace v8 |
546 | 547 |
547 #endif // V8_MESSAGES_H_ | 548 #endif // V8_MESSAGES_H_ |
OLD | NEW |