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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ | 229 T(StrongImplicitCast, "In strong mode, implicit conversions are deprecated") \ |
230 T(StrongRedefineDisallowed, \ | |
231 "Cannot redefine non-configurable property '%' of strong object % to be " \ | |
rossberg
2015/05/22 13:10:28
Nit: sylise
conradw
2015/05/22 14:07:08
Done.
| |
232 "non-writable") \ | |
230 T(SymbolKeyFor, "% is not a symbol") \ | 233 T(SymbolKeyFor, "% is not a symbol") \ |
231 T(SymbolToPrimitive, \ | 234 T(SymbolToPrimitive, \ |
232 "Cannot convert a Symbol wrapper object to a primitive value") \ | 235 "Cannot convert a Symbol wrapper object to a primitive value") \ |
233 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ | 236 T(SymbolToNumber, "Cannot convert a Symbol value to a number") \ |
234 T(SymbolToString, "Cannot convert a Symbol value to a string") \ | 237 T(SymbolToString, "Cannot convert a Symbol value to a string") \ |
235 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ | 238 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ |
236 T(ValueAndAccessor, \ | 239 T(ValueAndAccessor, \ |
237 "Invalid property. A property cannot both have accessors and be " \ | 240 "Invalid property. A property cannot both have accessors and be " \ |
238 "writable or have a value, %") \ | 241 "writable or have a value, %") \ |
239 T(VarRedeclaration, "Identifier '%' has already been declared") \ | 242 T(VarRedeclaration, "Identifier '%' has already been declared") \ |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
440 | 443 |
441 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 444 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
442 Handle<Object> message_obj); | 445 Handle<Object> message_obj); |
443 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 446 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
444 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 447 static SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
445 Handle<Object> data); | 448 Handle<Object> data); |
446 }; | 449 }; |
447 } } // namespace v8::internal | 450 } } // namespace v8::internal |
448 | 451 |
449 #endif // V8_MESSAGES_H_ | 452 #endif // V8_MESSAGES_H_ |
OLD | NEW |