Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 66d942c1c41497fca6158e23e1be694ec83bcc74..5b1eeed15403b945cea5a5d6cf495e16cd5d12c9 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -16,7 +16,6 @@ |
#include "src/heap-profiler.h" |
#include "src/ic/handler-compiler.h" |
#include "src/ic/ic.h" |
-#include "src/messages.h" |
#include "src/prototype.h" |
#include "src/vm-state-inl.h" |
@@ -1027,15 +1026,17 @@ |
BUILTIN(RestrictedFunctionPropertiesThrower) { |
HandleScope scope(isolate); |
- THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, NewTypeError(MessageTemplate::kRestrictedFunctionProperties)); |
+ THROW_NEW_ERROR_RETURN_FAILURE(isolate, |
+ NewTypeError("restricted_function_properties", |
+ HandleVector<Object>(NULL, 0))); |
} |
BUILTIN(RestrictedStrictArgumentsPropertiesThrower) { |
HandleScope scope(isolate); |
THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, NewTypeError(MessageTemplate::kStrictPoisonPill)); |
+ isolate, |
+ NewTypeError("strict_poison_pill", HandleVector<Object>(NULL, 0))); |
} |
@@ -1079,8 +1080,9 @@ |
if (raw_holder->IsNull()) { |
// This function cannot be called with the given receiver. Abort! |
- THROW_NEW_ERROR(isolate, NewTypeError(MessageTemplate::kIllegalInvocation), |
- Object); |
+ THROW_NEW_ERROR( |
+ isolate, NewTypeError("illegal_invocation", HandleVector(&function, 1)), |
+ Object); |
} |
Object* raw_call_data = fun_data->call_code(); |