summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-v8-4153-1.js
blob: 125b4e2f01b28b596e4a57eb95bf7c13350c7b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2019 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: --verify-heap

// Create tiny (on-heap) instances of TypedArrays to make sure
// that the ByteArrays are properly sized (in new space).
var arrays = [
  Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array,
  Float32Array, Float64Array, Uint8ClampedArray, BigInt64Array, BigUint64Array
].map(C => {
  new C(1)
});