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

Side by Side Diff: src/messages.h

Issue 1828543007: Add new semantics + compat fallback to Intl constructor Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add tests; make more minimal Created 4 years, 8 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/js/i18n.js ('k') | test/intl/assert.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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 T(ReadGlobalReferenceThroughProxy, "Trying to access '%' through proxy") \ 285 T(ReadGlobalReferenceThroughProxy, "Trying to access '%' through proxy") \
286 T(RedefineDisallowed, "Cannot redefine property: %") \ 286 T(RedefineDisallowed, "Cannot redefine property: %") \
287 T(RedefineExternalArray, \ 287 T(RedefineExternalArray, \
288 "Cannot redefine a property of an object with external array elements") \ 288 "Cannot redefine a property of an object with external array elements") \
289 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ 289 T(ReduceNoInitial, "Reduce of empty array with no initial value") \
290 T(RegExpFlags, \ 290 T(RegExpFlags, \
291 "Cannot supply flags when constructing one RegExp from another") \ 291 "Cannot supply flags when constructing one RegExp from another") \
292 T(RegExpNonObject, "% getter called on non-object %") \ 292 T(RegExpNonObject, "% getter called on non-object %") \
293 T(RegExpNonRegExp, "% getter called on non-RegExp object") \ 293 T(RegExpNonRegExp, "% getter called on non-RegExp object") \
294 T(ReinitializeIntl, "Trying to re-initialize % object.") \ 294 T(ReinitializeIntl, "Trying to re-initialize % object.") \
295 T(ResolvedOptionsCalledOnNonObject, \
296 "resolvedOptions method called on a non-object or on a object that is " \
297 "not Intl.%.") \
298 T(ResolverNotAFunction, "Promise resolver % is not a function") \ 295 T(ResolverNotAFunction, "Promise resolver % is not a function") \
299 T(RestrictedFunctionProperties, \ 296 T(RestrictedFunctionProperties, \
300 "'caller' and 'arguments' are restricted function properties and cannot " \ 297 "'caller' and 'arguments' are restricted function properties and cannot " \
301 "be accessed in this context.") \ 298 "be accessed in this context.") \
302 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \ 299 T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \
303 T(StaticPrototype, "Classes may not have static property named prototype") \ 300 T(StaticPrototype, "Classes may not have static property named prototype") \
304 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \ 301 T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \
305 T(StrictDeleteProperty, "Cannot delete property '%' of %") \ 302 T(StrictDeleteProperty, "Cannot delete property '%' of %") \
306 T(StrictPoisonPill, \ 303 T(StrictPoisonPill, \
307 "'caller', 'callee', and 'arguments' properties may not be accessed on " \ 304 "'caller', 'callee', and 'arguments' properties may not be accessed on " \
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 515 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
519 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 516 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
520 Handle<Object> data); 517 Handle<Object> data);
521 }; 518 };
522 519
523 520
524 } // namespace internal 521 } // namespace internal
525 } // namespace v8 522 } // namespace v8
526 523
527 #endif // V8_MESSAGES_H_ 524 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/js/i18n.js ('k') | test/intl/assert.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698