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

Side by Side Diff: src/messages.h

Issue 1139773005: [destructuring] More tests for object literal pattern (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More tests + fixed a bug 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 | « no previous file | src/parser.h » ('j') | src/parser.cc » ('J')
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \ 164 T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
165 T(IteratorResultNotAnObject, "Iterator result % is not an object") \ 165 T(IteratorResultNotAnObject, "Iterator result % is not an object") \
166 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \ 166 T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \
167 T(LanguageID, "Language ID should be string or object.") \ 167 T(LanguageID, "Language ID should be string or object.") \
168 T(MethodCalledOnWrongObject, \ 168 T(MethodCalledOnWrongObject, \
169 "Method % called on a non-object or on a wrong type of object.") \ 169 "Method % called on a non-object or on a wrong type of object.") \
170 T(MethodInvokedOnNullOrUndefined, \ 170 T(MethodInvokedOnNullOrUndefined, \
171 "Method invoked on undefined or null value.") \ 171 "Method invoked on undefined or null value.") \
172 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \ 172 T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \
173 T(NoAccess, "no access") \ 173 T(NoAccess, "no access") \
174 T(NonCoercible, "Cannot match agains 'undefined' or 'null") \
174 T(NonExtensibleProto, "% is not extensible") \ 175 T(NonExtensibleProto, "% is not extensible") \
175 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \ 176 T(NonObjectPropertyLoad, "Cannot read property '%' of %") \
176 T(NonObjectPropertyStore, "Cannot set property '%' of %") \ 177 T(NonObjectPropertyStore, "Cannot set property '%' of %") \
177 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \ 178 T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \
178 T(NotAnIterator, "% is not an iterator") \ 179 T(NotAnIterator, "% is not an iterator") \
179 T(NotAPromise, "% is not a promise") \ 180 T(NotAPromise, "% is not a promise") \
180 T(NotConstructor, "% is not a constructor") \ 181 T(NotConstructor, "% is not a constructor") \
181 T(NotDateObject, "this is not a Date object.") \ 182 T(NotDateObject, "this is not a Date object.") \
182 T(NotIntlObject, "% is not an i18n object.") \ 183 T(NotIntlObject, "% is not an i18n object.") \
183 T(NotGeneric, "% is not generic") \ 184 T(NotGeneric, "% is not generic") \
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 }; 321 };
321 322
322 static MaybeHandle<String> FormatMessage(int template_index, 323 static MaybeHandle<String> FormatMessage(int template_index,
323 Handle<String> arg0, 324 Handle<String> arg0,
324 Handle<String> arg1, 325 Handle<String> arg1,
325 Handle<String> arg2); 326 Handle<String> arg2);
326 }; 327 };
327 } } // namespace v8::internal 328 } } // namespace v8::internal
328 329
329 #endif // V8_MESSAGES_H_ 330 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698