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(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ | 93 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ |
94 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ | 94 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ |
95 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \ | 95 T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \ |
96 T(CalledNonCallable, "% is not a function") \ | 96 T(CalledNonCallable, "% is not a function") \ |
97 T(CalledNonCallableInstanceOf, \ | 97 T(CalledNonCallableInstanceOf, \ |
98 "Right-hand side of 'instanceof' is not callable") \ | 98 "Right-hand side of 'instanceof' is not callable") \ |
99 T(CalledOnNonObject, "% called on non-object") \ | 99 T(CalledOnNonObject, "% called on non-object") \ |
100 T(CalledOnNullOrUndefined, "% called on null or undefined") \ | 100 T(CalledOnNullOrUndefined, "% called on null or undefined") \ |
101 T(CallSiteExpectsFunction, \ | 101 T(CallSiteExpectsFunction, \ |
102 "CallSite expects function as second argument, got %") \ | 102 "CallSite expects function as second argument, got %") \ |
| 103 T(CallSiteMethod, "CallSite method % expects CallSite as receiver") \ |
103 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ | 104 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ |
104 T(CannotPreventExt, "Cannot prevent extensions") \ | 105 T(CannotPreventExt, "Cannot prevent extensions") \ |
105 T(CannotFreezeArrayBufferView, \ | 106 T(CannotFreezeArrayBufferView, \ |
106 "Cannot freeze array buffer views with elements") \ | 107 "Cannot freeze array buffer views with elements") \ |
107 T(CircularStructure, "Converting circular structure to JSON") \ | 108 T(CircularStructure, "Converting circular structure to JSON") \ |
108 T(ConstructAbstractClass, "Abstract class % not directly constructable") \ | 109 T(ConstructAbstractClass, "Abstract class % not directly constructable") \ |
109 T(ConstAssign, "Assignment to constant variable.") \ | 110 T(ConstAssign, "Assignment to constant variable.") \ |
110 T(ConstructorNonCallable, \ | 111 T(ConstructorNonCallable, \ |
111 "Class constructor % cannot be invoked without 'new'") \ | 112 "Class constructor % cannot be invoked without 'new'") \ |
112 T(ConstructorNotFunction, "Constructor % requires 'new'") \ | 113 T(ConstructorNotFunction, "Constructor % requires 'new'") \ |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 513 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
513 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 514 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
514 Handle<Object> data); | 515 Handle<Object> data); |
515 }; | 516 }; |
516 | 517 |
517 | 518 |
518 } // namespace internal | 519 } // namespace internal |
519 } // namespace v8 | 520 } // namespace v8 |
520 | 521 |
521 #endif // V8_MESSAGES_H_ | 522 #endif // V8_MESSAGES_H_ |
OLD | NEW |