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); |
} |