summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-9105.js
blob: bd73af09e1d82c3a837788a0e7993396a02ad99d (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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.

let array = new Uint32Array(32);
array[10] = 10; array[20] = 20;

Array.prototype.sort.call(array);
assertEquals(32, array.length);
assertEquals(10, array[30]);
assertEquals(20, array[31]);