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

Unified Diff: src/messages.h

Issue 1089303003: Migrate error messages, part 3 (runtime.js). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index fb3e50caf803db4a491c7141cf4481c6d3a310d1..9a31a2d1611f2f8ac499332fc35cecf458b15a42 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -92,11 +92,29 @@ class MessageHandler {
/* Error */ \
T(CyclicProto, "Cyclic __proto__ value") \
/* TypeError */ \
+ T(ApplyNonFunction, \
+ "Function.prototype.apply was called on %, which is a % and not a " \
+ "function") \
T(CalledNonCallable, "% is not a function") \
+ T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
T(GeneratorRunning, "Generator is already running") \
T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \
+ T(InstanceofFunctionExpected, \
+ "Expecting a function in instanceof check, but got %") \
+ T(InstanceofNonobjectProto, \
+ "Function has non-object prototype '%' in instanceof check") \
+ T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
+ T(NotConstructor, "% is not a constructor") \
T(PropertyNotFunction, "Property '%' of object % is not a function") \
+ T(SymbolToPrimitive, \
+ "Cannot convert a Symbol wrapper object to a primitive value") \
+ T(SymbolToNumber, "Cannot convert a Symbol value to a number") \
+ T(SymbolToString, "Cannot convert a Symbol value to a string") \
+ T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \
T(WithExpression, "% has no properties") \
+ T(WrongArgs, "%: Arguments list has wrong type") \
+ /* RangeError */ \
+ T(StackOverflow, "Maximum call stack size exceeded") \
/* EvalError */ \
T(CodeGenFromStrings, "%")
« no previous file with comments | « no previous file | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698