Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index c2518b625c01c013a2608a287c00f212b6546425..db0ec328ef538f2cba2d686313c7c54c4be534ce 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -13,6 +13,7 @@ |
#include "src/frames-inl.h" |
#include "src/isolate.h" |
#include "src/list-inl.h" |
+#include "src/messages.h" |
#include "src/property-details.h" |
#include "src/prototype.h" |
@@ -260,8 +261,8 @@ void Accessors::ArrayLengthSetter( |
return; |
} |
- Handle<Object> exception = isolate->factory()->NewRangeError( |
- "invalid_array_length", HandleVector<Object>(NULL, 0)); |
+ Handle<Object> exception = |
+ isolate->factory()->NewRangeError(MessageTemplate::kInvalidArrayLength); |
isolate->ScheduleThrow(*exception); |
} |