v8/test/mjsunit/regress/regress-crbug-635798.js
bmeurer 864cdc124c [test] Speed-up regression test for growing stores.
TBR=machenbach@chromium.org
BUG=chromium:635798,chromium:638295

Review-Url: https://codereview.chromium.org/2288813003
Cr-Commit-Position: refs/heads/master@{#38991}
2016-08-30 04:04:32 +00:00

16 lines
329 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: --allow-natives-syntax
function foo() {
var x = [];
var y = [];
x.__proto__ = y;
for (var i = 0; i < 10000; ++i) {
y[i] = 1;
}
}
foo();