Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index 8a3fce0a923d6f1ddd17650f17d4d6e7b6799209..b963868e81c84cc70dffdbf46a14ff0b8b169113 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -33,7 +33,7 @@ RUNTIME_FUNCTION(Runtime_ArrayBufferInitialize) { |
holder, isolate, allocated_length, true, |
is_shared ? SharedFlag::kShared : SharedFlag::kNotShared)) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, NewRangeError(MessageTemplate::kInvalidArrayBufferLength)); |
+ isolate, NewRangeError(MessageTemplate::kArrayBufferAllocationFailed)); |
} |
return *holder; |
} |