21b55c4aa5
Failing to do the right check in AdvancePage results in a crash in a CHECK later in EnsureCurrentCapacity. BUG=chromium:620750,chromium:622115 LOG=N R=jochen@chromium.org Review-Url: https://codereview.chromium.org/2090013002 Cr-Commit-Position: refs/heads/master@{#37171}
15 lines
316 B
JavaScript
15 lines
316 B
JavaScript
// Copyright 2016 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --es-staging
|
|
|
|
function push_a_lot(arr) {
|
|
for (var i = 0; i < 2e4; i++) {
|
|
arr.push(i);
|
|
}
|
|
return arr;
|
|
}
|
|
|
|
__v_13 = push_a_lot([]);
|