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

Side by Side Diff: src/messages.h

Issue 1120333007: Revert of Migrate error messages, part 7. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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(CurrencyCode, "Currency code is required with currency style.") \
130 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ 131 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
131 T(ConstructorNotFunction, "Constructor % requires 'new'") \
132 T(CurrencyCode, "Currency code is required with currency style.") \
133 T(DateType, "this is not a Date object.") \ 132 T(DateType, "this is not a Date object.") \
134 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 133 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
135 T(FirstArgumentNotRegExp, \ 134 T(FirstArgumentNotRegExp, \
136 "First argument to % must not be a regular expression") \ 135 "First argument to % must not be a regular expression") \
137 T(FlagsGetterNonObject, \
138 "RegExp.prototype.flags getter called on non-object %") \
139 T(FunctionBind, "Bind must be called on a function") \ 136 T(FunctionBind, "Bind must be called on a function") \
140 T(GeneratorRunning, "Generator is already running") \ 137 T(GeneratorRunning, "Generator is already running") \
141 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ 138 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \
142 T(InstanceofFunctionExpected, \ 139 T(InstanceofFunctionExpected, \
143 "Expecting a function in instanceof check, but got %") \ 140 "Expecting a function in instanceof check, but got %") \
144 T(InstanceofNonobjectProto, \ 141 T(InstanceofNonobjectProto, \
145 "Function has non-object prototype '%' in instanceof check") \ 142 "Function has non-object prototype '%' in instanceof check") \
146 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ 143 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") \
149 T(LanguageID, "Language ID should be string or object.") \ 144 T(LanguageID, "Language ID should be string or object.") \
150 T(MethodCalledOnWrongObject, \ 145 T(MethodCalledOnWrongObject, \
151 "Method % called on a non-object or on a wrong type of object.") \ 146 "Method % called on a non-object or on a wrong type of object.") \
152 T(MethodInvokedOnNullOrUndefined, \ 147 T(MethodInvokedOnNullOrUndefined, \
153 "Method invoked on undefined or null value.") \ 148 "Method invoked on undefined or null value.") \
154 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ 149 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \
155 T(NotAnIterator, "% is not an iterator") \ 150 T(NotAnIterator, "% is not an iterator") \
156 T(NotConstructor, "% is not a constructor") \ 151 T(NotConstructor, "% is not a constructor") \
157 T(NotGeneric, "% is not generic") \ 152 T(NotGeneric, "% is not generic") \
158 T(NotIterable, "% is not iterable") \ 153 T(NotIterable, "% is not iterable") \
159 T(NotTypedArray, "this is not a typed array.") \
160 T(ObjectGetterExpectingFunction, \ 154 T(ObjectGetterExpectingFunction, \
161 "Object.prototype.__defineGetter__: Expecting function") \ 155 "Object.prototype.__defineGetter__: Expecting function") \
162 T(ObjectGetterCallable, "Getter must be a function: %") \ 156 T(ObjectGetterCallable, "Getter must be a function: %") \
163 T(ObjectSetterExpectingFunction, \ 157 T(ObjectSetterExpectingFunction, \
164 "Object.prototype.__defineSetter__: Expecting function") \ 158 "Object.prototype.__defineSetter__: Expecting function") \
165 T(ObjectSetterCallable, "Setter must be a function: %") \ 159 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") \
178 T(OrdinaryFunctionCalledAsConstructor, \ 160 T(OrdinaryFunctionCalledAsConstructor, \
179 "Function object that's not a constructor was created with new") \ 161 "Function object that's not a constructor was created with new") \
180 T(PropertyDescObject, "Property description must be an object: %") \ 162 T(PropertyDescObject, "Property description must be an object: %") \
181 T(PropertyNotFunction, "Property '%' of object % is not a function") \ 163 T(PropertyNotFunction, "Property '%' of object % is not a function") \
182 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ 164 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \
183 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ 165 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \
184 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ 166 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \
185 T(ProxyHandlerTrapMustBeCallable, \ 167 T(ProxyHandlerTrapMustBeCallable, \
186 "Proxy handler %0 has non-callable '%' trap") \ 168 "Proxy handler %0 has non-callable '%' trap") \
187 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ 169 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 }; 222 };
241 223
242 static MaybeHandle<String> FormatMessage(int template_index, 224 static MaybeHandle<String> FormatMessage(int template_index,
243 Handle<String> arg0, 225 Handle<String> arg0,
244 Handle<String> arg1, 226 Handle<String> arg1,
245 Handle<String> arg2); 227 Handle<String> arg2);
246 }; 228 };
247 } } // namespace v8::internal 229 } } // namespace v8::internal
248 230
249 #endif // V8_MESSAGES_H_ 231 #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