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

Side by Side Diff: src/messages.h

Issue 2686233008: Unify TypeError messages (Closed)
Patch Set: Fix test expectations Created 3 years, 10 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 | test/mjsunit/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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 T(ConstructorNotFunction, "Constructor % requires 'new'") \ 289 T(ConstructorNotFunction, "Constructor % requires 'new'") \
290 T(ConstructorNotReceiver, "The .constructor property is not an object") \ 290 T(ConstructorNotReceiver, "The .constructor property is not an object") \
291 T(CurrencyCode, "Currency code is required with currency style.") \ 291 T(CurrencyCode, "Currency code is required with currency style.") \
292 T(CyclicModuleDependency, "Detected cycle while resolving name '%'") \ 292 T(CyclicModuleDependency, "Detected cycle while resolving name '%'") \
293 T(DataViewNotArrayBuffer, \ 293 T(DataViewNotArrayBuffer, \
294 "First argument to DataView constructor must be an ArrayBuffer") \ 294 "First argument to DataView constructor must be an ArrayBuffer") \
295 T(DateType, "this is not a Date object.") \ 295 T(DateType, "this is not a Date object.") \
296 T(DebuggerFrame, "Debugger: Invalid frame index.") \ 296 T(DebuggerFrame, "Debugger: Invalid frame index.") \
297 T(DebuggerType, "Debugger: Parameters have wrong types.") \ 297 T(DebuggerType, "Debugger: Parameters have wrong types.") \
298 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ 298 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \
299 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 299 T(DefineDisallowed, "Cannot define property %, object is not extensible") \
300 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \ 300 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \
301 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ 301 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \
302 T(ExtendsValueNotConstructor, \ 302 T(ExtendsValueNotConstructor, \
303 "Class extends value % is not a constructor or null") \ 303 "Class extends value % is not a constructor or null") \
304 T(FirstArgumentNotRegExp, \ 304 T(FirstArgumentNotRegExp, \
305 "First argument to % must not be a regular expression") \ 305 "First argument to % must not be a regular expression") \
306 T(FunctionBind, "Bind must be called on a function") \ 306 T(FunctionBind, "Bind must be called on a function") \
307 T(GeneratorRunning, "Generator is already running") \ 307 T(GeneratorRunning, "Generator is already running") \
308 T(IllegalInvocation, "Illegal invocation") \ 308 T(IllegalInvocation, "Illegal invocation") \
309 T(ImmutablePrototypeSet, \ 309 T(ImmutablePrototypeSet, \
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 T(NotPropertyName, "% is not a valid property name") \ 345 T(NotPropertyName, "% is not a valid property name") \
346 T(NotTypedArray, "this is not a typed array.") \ 346 T(NotTypedArray, "this is not a typed array.") \
347 T(NotSuperConstructor, "Super constructor % of % is not a constructor") \ 347 T(NotSuperConstructor, "Super constructor % of % is not a constructor") \
348 T(NotSuperConstructorAnonymousClass, \ 348 T(NotSuperConstructorAnonymousClass, \
349 "Super constructor % of anonymous class is not a constructor") \ 349 "Super constructor % of anonymous class is not a constructor") \
350 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \ 350 T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \
351 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \ 351 T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \
352 T(ObjectGetterExpectingFunction, \ 352 T(ObjectGetterExpectingFunction, \
353 "Object.prototype.__defineGetter__: Expecting function") \ 353 "Object.prototype.__defineGetter__: Expecting function") \
354 T(ObjectGetterCallable, "Getter must be a function: %") \ 354 T(ObjectGetterCallable, "Getter must be a function: %") \
355 T(ObjectNotExtensible, "Can't add property %, object is not extensible") \ 355 T(ObjectNotExtensible, "Cannot add property %, object is not extensible") \
356 T(ObjectSetterExpectingFunction, \ 356 T(ObjectSetterExpectingFunction, \
357 "Object.prototype.__defineSetter__: Expecting function") \ 357 "Object.prototype.__defineSetter__: Expecting function") \
358 T(ObjectSetterCallable, "Setter must be a function: %") \ 358 T(ObjectSetterCallable, "Setter must be a function: %") \
359 T(OrdinaryFunctionCalledAsConstructor, \ 359 T(OrdinaryFunctionCalledAsConstructor, \
360 "Function object that's not a constructor was created with new") \ 360 "Function object that's not a constructor was created with new") \
361 T(PromiseCyclic, "Chaining cycle detected for promise %") \ 361 T(PromiseCyclic, "Chaining cycle detected for promise %") \
362 T(PromiseExecutorAlreadyInvoked, \ 362 T(PromiseExecutorAlreadyInvoked, \
363 "Promise executor has already been invoked with non-undefined arguments") \ 363 "Promise executor has already been invoked with non-undefined arguments") \
364 T(PromiseNonCallable, "Promise resolve or reject function is not callable") \ 364 T(PromiseNonCallable, "Promise resolve or reject function is not callable") \
365 T(PropertyDescObject, "Property description must be an object: %") \ 365 T(PropertyDescObject, "Property description must be an object: %") \
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 const MessageLocation* loc, 734 const MessageLocation* loc,
735 Handle<Object> message_obj, 735 Handle<Object> message_obj,
736 v8::Local<v8::Value> api_exception_obj); 736 v8::Local<v8::Value> api_exception_obj);
737 }; 737 };
738 738
739 739
740 } // namespace internal 740 } // namespace internal
741 } // namespace v8 741 } // namespace v8
742 742
743 #endif // V8_MESSAGES_H_ 743 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698