Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index 95670d5950d55c2b1663213825ee62af1f1d05a3..34f873512506f9fca64dde84fdc21c3ce318aaad 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -1223,7 +1223,7 @@ RUNTIME_FUNCTION(Runtime_GrowArrayElements) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 3); |
CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
- CONVERT_SMI_ARG_CHECKED(key, 1); |
+ CONVERT_NUMBER_CHECKED(int, key, Int32, args[1]); |
if (key < 0) { |
return object->elements(); |