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

Side by Side Diff: src/messages.h

Issue 1116953002: Migrate error messages, part 6. (string.js and date.js) (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/date.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(CurrencyCode, "Currency code is required with currency style.") \
131 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \ 131 T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
132 T(DateType, "this is not a Date object.") \ 132 T(DateType, "this is not a Date object.") \
133 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 133 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
134 T(FirstArgumentNotRegExp, \
135 "First argument to % must not be a regular expression") \
136 T(FunctionBind, "Bind must be called on a function") \
134 T(GeneratorRunning, "Generator is already running") \ 137 T(GeneratorRunning, "Generator is already running") \
135 T(FunctionBind, "Bind must be called on a function") \
136 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ 138 T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \
137 T(InstanceofFunctionExpected, \ 139 T(InstanceofFunctionExpected, \
138 "Expecting a function in instanceof check, but got %") \ 140 "Expecting a function in instanceof check, but got %") \
139 T(InstanceofNonobjectProto, \ 141 T(InstanceofNonobjectProto, \
140 "Function has non-object prototype '%' in instanceof check") \ 142 "Function has non-object prototype '%' in instanceof check") \
141 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ 143 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
142 T(LanguageID, "Language ID should be string or object.") \ 144 T(LanguageID, "Language ID should be string or object.") \
143 T(MethodCalledOnWrongObject, \ 145 T(MethodCalledOnWrongObject, \
144 "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.") \
145 T(MethodInvokedOnNullOrUndefined, \ 147 T(MethodInvokedOnNullOrUndefined, \
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \ 184 T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \
183 T(ValueAndAccessor, \ 185 T(ValueAndAccessor, \
184 "Invalid property. A property cannot both have accessors and be " \ 186 "Invalid property. A property cannot both have accessors and be " \
185 "writable or have a value, %") \ 187 "writable or have a value, %") \
186 T(WithExpression, "% has no properties") \ 188 T(WithExpression, "% has no properties") \
187 T(WrongArgs, "%: Arguments list has wrong type") \ 189 T(WrongArgs, "%: Arguments list has wrong type") \
188 /* RangeError */ \ 190 /* RangeError */ \
189 T(ArrayLengthOutOfRange, "defineProperty() array length out of range") \ 191 T(ArrayLengthOutOfRange, "defineProperty() array length out of range") \
190 T(DateRange, "Provided date is not in valid range.") \ 192 T(DateRange, "Provided date is not in valid range.") \
191 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \ 193 T(ExpectedLocation, "Expected Area/Location for time zone, got %") \
194 T(InvalidCodePoint, "Invalid code point %") \
195 T(InvalidCountValue, "Invalid count value") \
192 T(InvalidCurrencyCode, "Invalid currency code: %") \ 196 T(InvalidCurrencyCode, "Invalid currency code: %") \
193 T(InvalidLanguageTag, "Invalid language tag: %") \ 197 T(InvalidLanguageTag, "Invalid language tag: %") \
198 T(InvalidTimeValue, "Invalid time value") \
194 T(LocaleMatcher, "Illegal value for localeMatcher:%") \ 199 T(LocaleMatcher, "Illegal value for localeMatcher:%") \
195 T(NormalizationForm, "The normalization form should be one of %.") \ 200 T(NormalizationForm, "The normalization form should be one of %.") \
196 T(NumberFormatRange, "% argument must be between 0 and 20") \ 201 T(NumberFormatRange, "% argument must be between 0 and 20") \
197 T(PropertyValueOutOfRange, "% value is out of range.") \ 202 T(PropertyValueOutOfRange, "% value is out of range.") \
198 T(StackOverflow, "Maximum call stack size exceeded") \ 203 T(StackOverflow, "Maximum call stack size exceeded") \
199 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \ 204 T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \
200 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \ 205 T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \
201 T(UnsupportedTimeZone, "Unsupported time zone specified %") \ 206 T(UnsupportedTimeZone, "Unsupported time zone specified %") \
202 T(ValueOutOfRange, "Value % out of range for % options property %") \ 207 T(ValueOutOfRange, "Value % out of range for % options property %") \
203 /* SyntaxError */ \ 208 /* SyntaxError */ \
(...skipping 13 matching lines...) Expand all
217 }; 222 };
218 223
219 static MaybeHandle<String> FormatMessage(int template_index, 224 static MaybeHandle<String> FormatMessage(int template_index,
220 Handle<String> arg0, 225 Handle<String> arg0,
221 Handle<String> arg1, 226 Handle<String> arg1,
222 Handle<String> arg2); 227 Handle<String> arg2);
223 }; 228 };
224 } } // namespace v8::internal 229 } } // namespace v8::internal
225 230
226 #endif // V8_MESSAGES_H_ 231 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698