| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 "Derived ArrayBuffer constructor created a buffer which was too small") \ | 90 "Derived ArrayBuffer constructor created a buffer which was too small") \ |
| 91 T(ArrayBufferSpeciesThis, \ | 91 T(ArrayBufferSpeciesThis, \ |
| 92 "ArrayBuffer subclass returned this from species constructor") \ | 92 "ArrayBuffer subclass returned this from species constructor") \ |
| 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(CalledOnNonObject, "% called on non-object") \ | 97 T(CalledOnNonObject, "% called on non-object") \ |
| 98 T(CalledOnNullOrUndefined, "% called on null or undefined") \ | 98 T(CalledOnNullOrUndefined, "% called on null or undefined") \ |
| 99 T(CallSiteExpectsFunction, \ | 99 T(CallSiteExpectsFunction, \ |
| 100 "CallSite expects function or number as second argument, got %") \ | 100 "CallSite expects wasm object as first or function as second argument, " \ |
| 101 "got <%, %>") \ |
| 101 T(CallSiteMethod, "CallSite method % expects CallSite as receiver") \ | 102 T(CallSiteMethod, "CallSite method % expects CallSite as receiver") \ |
| 102 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ | 103 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ |
| 103 T(CannotPreventExt, "Cannot prevent extensions") \ | 104 T(CannotPreventExt, "Cannot prevent extensions") \ |
| 104 T(CannotFreezeArrayBufferView, \ | 105 T(CannotFreezeArrayBufferView, \ |
| 105 "Cannot freeze array buffer views with elements") \ | 106 "Cannot freeze array buffer views with elements") \ |
| 106 T(CircularStructure, "Converting circular structure to JSON") \ | 107 T(CircularStructure, "Converting circular structure to JSON") \ |
| 107 T(ConstructAbstractClass, "Abstract class % not directly constructable") \ | 108 T(ConstructAbstractClass, "Abstract class % not directly constructable") \ |
| 108 T(ConstAssign, "Assignment to constant variable.") \ | 109 T(ConstAssign, "Assignment to constant variable.") \ |
| 109 T(ConstructorNonCallable, \ | 110 T(ConstructorNonCallable, \ |
| 110 "Class constructor % cannot be invoked without 'new'") \ | 111 "Class constructor % cannot be invoked without 'new'") \ |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 531 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 531 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 532 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 532 Handle<Object> data); | 533 Handle<Object> data); |
| 533 }; | 534 }; |
| 534 | 535 |
| 535 | 536 |
| 536 } // namespace internal | 537 } // namespace internal |
| 537 } // namespace v8 | 538 } // namespace v8 |
| 538 | 539 |
| 539 #endif // V8_MESSAGES_H_ | 540 #endif // V8_MESSAGES_H_ |
| OLD | NEW |