| Index: src/runtime/runtime-array.cc
|
| diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc
|
| index b5655db611a5ce34161d45990718872fa7f02916..4cbd5705779de160a6c4f3d16155ac2bb70df744 100644
|
| --- a/src/runtime/runtime-array.cc
|
| +++ b/src/runtime/runtime-array.cc
|
| @@ -133,7 +133,7 @@ class ArrayConcatVisitor {
|
| ~ArrayConcatVisitor() { clear_storage(); }
|
|
|
| void visit(uint32_t i, Handle<Object> elm) {
|
| - if (i > JSObject::kMaxElementCount - index_offset_) {
|
| + if (i >= JSObject::kMaxElementCount - index_offset_) {
|
| set_exceeds_array_limit(true);
|
| return;
|
| }
|
|
|