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

Unified Diff: src/execution.cc

Issue 1086313003: Migrate error messages, part 2. (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 | « src/collection-iterator.js ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index 0a45ee77c57d79ac222f573dc1ae754acbe85cb2..ad7d7f6020b7b36865fa5ee584c59981622dc862 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -8,6 +8,7 @@
#include "src/codegen.h"
#include "src/deoptimizer.h"
#include "src/isolate-inl.h"
+#include "src/messages.h"
#include "src/vm-state-inl.h"
namespace v8 {
@@ -279,8 +280,8 @@ MaybeHandle<Object> Execution::TryGetFunctionDelegate(Isolate* isolate,
// If the Object doesn't have an instance-call handler we should
// throw a non-callable exception.
- THROW_NEW_ERROR(isolate, NewTypeError("called_non_callable",
- i::HandleVector<i::Object>(&object, 1)),
+ THROW_NEW_ERROR(isolate,
+ NewTypeError(MessageTemplate::kCalledNonCallable, object),
Object);
}
@@ -335,8 +336,8 @@ MaybeHandle<Object> Execution::TryGetConstructorDelegate(
// If the Object doesn't have an instance-call handler we should
// throw a non-callable exception.
- THROW_NEW_ERROR(isolate, NewTypeError("called_non_callable",
- i::HandleVector<i::Object>(&object, 1)),
+ THROW_NEW_ERROR(isolate,
+ NewTypeError(MessageTemplate::kCalledNonCallable, object),
Object);
}
« no previous file with comments | « src/collection-iterator.js ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698