nodejs/deps/v8/test/mjsunit/regress/regress-crbug-1347721.js

12 lines
377 B
JavaScript
Raw Permalink Normal View History

// Copyright 2022 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.
for (let i = 0; i < 1000; i++) {
const rab = new ArrayBuffer(1632, {"maxByteLength": 4096});
const ta1 = new Uint32Array(rab);
const ta2 = new Float32Array(rab);
rab.resize(2004);
ta1["set"](ta2);
}