blob: e6ff956946437025c555e12e1973c549a3c54336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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.
var count = 0;
function keyedSta(a) {
a[0] = {
valueOf() {
count += 1;
return 42n;
}
};
};
array1 = keyedSta(new BigInt64Array(1));
var r = keyedSta(new BigInt64Array());
assertEquals(count, 2);
|