Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index ac63b75888b26bc45cc88d0bbf926a9cecb39a55..ce32cb2898dadf4f3c387769d9e1f581c85cb3c6 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -7,6 +7,7 @@ |
#include "src/arguments.h" |
#include "src/conversions.h" |
#include "src/elements.h" |
+#include "src/messages.h" |
#include "src/objects.h" |
#include "src/utils.h" |
@@ -141,8 +142,7 @@ static bool HasKey(Handle<FixedArray> array, Handle<Object> key_handle) { |
MUST_USE_RESULT |
static MaybeHandle<Object> ThrowArrayLengthRangeError(Isolate* isolate) { |
- THROW_NEW_ERROR(isolate, NewRangeError("invalid_array_length", |
- HandleVector<Object>(NULL, 0)), |
+ THROW_NEW_ERROR(isolate, NewRangeError(MessageTemplate::kInvalidArrayLength), |
Object); |
} |