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