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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 "be accessed in this context.") \ | 219 "be accessed in this context.") \ |
220 T(StaticPrototype, "Classes may not have static property named prototype") \ | 220 T(StaticPrototype, "Classes may not have static property named prototype") \ |
221 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ | 221 T(StrictCannotAssign, "Cannot assign to read only '% in strict mode") \ |
222 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ | 222 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ |
223 T(StrictPoisonPill, \ | 223 T(StrictPoisonPill, \ |
224 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ | 224 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ |
225 "strict mode functions or the arguments objects for calls to them") \ | 225 "strict mode functions or the arguments objects for calls to them") \ |
226 T(StrictReadOnlyProperty, "Cannot assign to read only property '%' of %") \ | 226 T(StrictReadOnlyProperty, "Cannot assign to read only property '%' of %") \ |
227 T(StrongArity, \ | 227 T(StrongArity, \ |
228 "In strong mode, calling a function with too few arguments is deprecated") \ | 228 "In strong mode, calling a function with too few arguments is deprecated") \ |
| 229 T(StrongDeleteProperty, \ |
| 230 "On strong object %, deletion of property % is deprecated") \ |
229 T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ | 231 T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ |
230 T(StrongSetProto, \ | 232 T(StrongSetProto, \ |
231 "On strong object %, redefining the internal prototype is deprecated") \ | 233 "On strong object %, redefining the internal prototype is deprecated") \ |
232 T(SymbolKeyFor, "% is not a symbol") \ | 234 T(SymbolKeyFor, "% is not a symbol") \ |
233 T(SymbolToPrimitive, \ | 235 T(SymbolToPrimitive, \ |
234 "Cannot convert a Symbol wrapper object to a primitive value") \ | 236 "Cannot convert a Symbol wrapper object to a primitive value") \ |
235 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ | 237 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ |
236 T(SymbolToString, "Cannot convert a Symbol value to a string") \ | 238 T(SymbolToString, "Cannot convert a Symbol value to a string") \ |
237 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ | 239 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ |
238 T(ValueAndAccessor, \ | 240 T(ValueAndAccessor, \ |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 444 |
443 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 445 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
444 Handle<Object> message_obj); | 446 Handle<Object> message_obj); |
445 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 447 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
446 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 448 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
447 Handle<Object> data); | 449 Handle<Object> data); |
448 }; | 450 }; |
449 } } // namespace v8::internal | 451 } } // namespace v8::internal |
450 | 452 |
451 #endif // V8_MESSAGES_H_ | 453 #endif // V8_MESSAGES_H_ |
OLD | NEW |