Index: src/api-natives.cc |
diff --git a/src/api-natives.cc b/src/api-natives.cc |
index 71a039f35ea8d4d312e43a398392630190618163..c95f2ce2553210a33374c1fee23282096b05b862 100644 |
--- a/src/api-natives.cc |
+++ b/src/api-natives.cc |
@@ -7,7 +7,6 @@ |
#include "src/api.h" |
#include "src/isolate.h" |
#include "src/lookup.h" |
-#include "src/messages.h" |
namespace v8 { |
namespace internal { |
@@ -96,9 +95,10 @@ |
duplicate = maybe.FromJust(); |
} |
if (duplicate) { |
- THROW_NEW_ERROR( |
- isolate, NewTypeError(MessageTemplate::kDuplicateTemplateProperty, key), |
- Object); |
+ Handle<Object> args[1] = {key}; |
+ THROW_NEW_ERROR(isolate, NewTypeError("duplicate_template_property", |
+ HandleVector(args, 1)), |
+ Object); |
} |
#endif |