Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Side by Side Diff: src/messages.h

Issue 1122033002: Migrate error messages, part 7. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/harmony-typedarray.js ('k') | src/messages.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 T(WrongValueType, "Internal error. Wrong value type.") \ 120 T(WrongValueType, "Internal error. Wrong value type.") \
121 /* TypeError */ \ 121 /* TypeError */ \
122 T(ApplyNonFunction, \ 122 T(ApplyNonFunction, \
123 "Function.prototype.apply was called on %, which is a % and not a " \ 123 "Function.prototype.apply was called on %, which is a % and not a " \
124 "function") \ 124 "function") \
125 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \ 125 T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \
126 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \ 126 T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \
127 T(CalledNonCallable, "% is not a function") \ 127 T(CalledNonCallable, "% is not a function") \
128 T(CalledOnNonObject, "% called on non-object") \ 128 T(CalledOnNonObject, "% called on non-object") \
129 T(CalledOnNullOrUndefined, "% called on null or undefined") \ 129 T(CalledOnNullOrUndefined, "% called on null or undefined") \
130 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
131 T(ConstructorNotFunction, "Constructor % requires 'new'") \
130 T(CurrencyCode, "Currency code is required with currency style.") \ 132 T(CurrencyCode, "Currency code is required with currency style.") \
131 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
132 T(DateType, "this is not a Date object.") \ 133 T(DateType, "this is not a Date object.") \
133 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 134 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
134 T(FirstArgumentNotRegExp, \ 135 T(FirstArgumentNotRegExp, \
135 "First argument to % must not be a regular expression") \ 136 "First argument to % must not be a regular expression") \
137 T(FlagsGetterNonObject, \
138 "RegExp.prototype.flags getter called on non-object %") \
136 T(FunctionBind, "Bind must be called on a function") \ 139 T(FunctionBind, "Bind must be called on a function") \
137 T(GeneratorRunning, "Generator is already running") \ 140 T(GeneratorRunning, "Generator is already running") \
138 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ 141 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \
139 T(InstanceofFunctionExpected, \ 142 T(InstanceofFunctionExpected, \
140 "Expecting a function in instanceof check, but got %") \ 143 "Expecting a function in instanceof check, but got %") \
141 T(InstanceofNonobjectProto, \ 144 T(InstanceofNonobjectProto, \
142 "Function has non-object prototype '%' in instanceof check") \ 145 "Function has non-object prototype '%' in instanceof check") \
143 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ 146 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
147 T(IteratorResultNotAnObject, "Iterator result % is not an object") \
148 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \
144 T(LanguageID, "Language ID should be string or object.") \ 149 T(LanguageID, "Language ID should be string or object.") \
145 T(MethodCalledOnWrongObject, \ 150 T(MethodCalledOnWrongObject, \
146 "Method % called on a non-object or on a wrong type of object.") \ 151 "Method % called on a non-object or on a wrong type of object.") \
147 T(MethodInvokedOnNullOrUndefined, \ 152 T(MethodInvokedOnNullOrUndefined, \
148 "Method invoked on undefined or null value.") \ 153 "Method invoked on undefined or null value.") \
149 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ 154 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \
150 T(NotAnIterator, "% is not an iterator") \ 155 T(NotAnIterator, "% is not an iterator") \
151 T(NotConstructor, "% is not a constructor") \ 156 T(NotConstructor, "% is not a constructor") \
152 T(NotGeneric, "% is not generic") \ 157 T(NotGeneric, "% is not generic") \
153 T(NotIterable, "% is not iterable") \ 158 T(NotIterable, "% is not iterable") \
159 T(NotTypedArray, "this is not a typed array.") \
154 T(ObjectGetterExpectingFunction, \ 160 T(ObjectGetterExpectingFunction, \
155 "Object.prototype.__defineGetter__: Expecting function") \ 161 "Object.prototype.__defineGetter__: Expecting function") \
156 T(ObjectGetterCallable, "Getter must be a function: %") \ 162 T(ObjectGetterCallable, "Getter must be a function: %") \
157 T(ObjectSetterExpectingFunction, \ 163 T(ObjectSetterExpectingFunction, \
158 "Object.prototype.__defineSetter__: Expecting function") \ 164 "Object.prototype.__defineSetter__: Expecting function") \
159 T(ObjectSetterCallable, "Setter must be a function: %") \ 165 T(ObjectSetterCallable, "Setter must be a function: %") \
166 T(ObserveCallbackFrozen, \
167 "Object.observe cannot deliver to a frozen function object") \
168 T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \
169 T(ObserveInvalidAccept, \
170 "Third argument to Object.observe must be an array of strings.") \
171 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \
172 T(ObserveNonObject, "Object.% cannot % non-object") \
173 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \
174 T(ObservePerformNonFunction, "Cannot perform non-function") \
175 T(ObservePerformNonString, "Invalid non-string changeType") \
176 T(ObserveTypeNonString, \
177 "Invalid changeRecord with non-string 'type' property") \
160 T(OrdinaryFunctionCalledAsConstructor, \ 178 T(OrdinaryFunctionCalledAsConstructor, \
161 "Function object that's not a constructor was created with new") \ 179 "Function object that's not a constructor was created with new") \
162 T(PropertyDescObject, "Property description must be an object: %") \ 180 T(PropertyDescObject, "Property description must be an object: %") \
163 T(PropertyNotFunction, "Property '%' of object % is not a function") \ 181 T(PropertyNotFunction, "Property '%' of object % is not a function") \
164 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ 182 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \
165 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ 183 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \
166 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ 184 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \
167 T(ProxyHandlerTrapMustBeCallable, \ 185 T(ProxyHandlerTrapMustBeCallable, \
168 "Proxy handler %0 has non-callable '%' trap") \ 186 "Proxy handler %0 has non-callable '%' trap") \
169 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ 187 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 }; 240 };
223 241
224 static MaybeHandle<String> FormatMessage(int template_index, 242 static MaybeHandle<String> FormatMessage(int template_index,
225 Handle<String> arg0, 243 Handle<String> arg0,
226 Handle<String> arg1, 244 Handle<String> arg1,
227 Handle<String> arg2); 245 Handle<String> arg2);
228 }; 246 };
229 } } // namespace v8::internal 247 } } // namespace v8::internal
230 248
231 #endif // V8_MESSAGES_H_ 249 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/harmony-typedarray.js ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698