| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, \ | 229 T(StrongDeleteProperty, \ |
| 230 "On strong object %, deletion of property % is deprecated") \ | 230 "On strong object %, deletion of property % is deprecated") \ |
| 231 T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ | 231 T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ |
| 232 T(StrongRedefineDisallowed, \ | 232 T(StrongRedefineDisallowed, \ |
| 233 "Cannot redefine non-configurable property '%' of strong object % to be " \ | |
| 234 "non-writable") \ | |
| 235 T(StrongSetProto, \ | |
| 236 "On strong object %, redefining writable, non-configurable property '%' " \ | 233 "On strong object %, redefining writable, non-configurable property '%' " \ |
| 237 "to be non-writable is deprecated") \ | 234 "to be non-writable is deprecated") \ |
| 235 T(StrongSetProto, \ |
| 236 "On strong object %, redefining the internal prototype is deprecated") \ |
| 238 T(SymbolKeyFor, "% is not a symbol") \ | 237 T(SymbolKeyFor, "% is not a symbol") \ |
| 239 T(SymbolToPrimitive, \ | 238 T(SymbolToPrimitive, \ |
| 240 "Cannot convert a Symbol wrapper object to a primitive value") \ | 239 "Cannot convert a Symbol wrapper object to a primitive value") \ |
| 241 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ | 240 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ |
| 242 T(SymbolToString, "Cannot convert a Symbol value to a string") \ | 241 T(SymbolToString, "Cannot convert a Symbol value to a string") \ |
| 243 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ | 242 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ |
| 244 T(ValueAndAccessor, \ | 243 T(ValueAndAccessor, \ |
| 245 "Invalid property. A property cannot both have accessors and be " \ | 244 "Invalid property. A property cannot both have accessors and be " \ |
| 246 "writable or have a value, %") \ | 245 "writable or have a value, %") \ |
| 247 T(VarRedeclaration, "Identifier '%' has already been declared") \ | 246 T(VarRedeclaration, "Identifier '%' has already been declared") \ |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 447 |
| 449 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 448 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
| 450 Handle<Object> message_obj); | 449 Handle<Object> message_obj); |
| 451 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 450 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
| 452 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 451 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
| 453 Handle<Object> data); | 452 Handle<Object> data); |
| 454 }; | 453 }; |
| 455 } } // namespace v8::internal | 454 } } // namespace v8::internal |
| 456 | 455 |
| 457 #endif // V8_MESSAGES_H_ | 456 #endif // V8_MESSAGES_H_ |
| OLD | NEW |