summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/typedarray-selfhosted-cross-compartment.js
blob: ee2ef412c6d49424d3d5cf46948c5d530f62d486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Any copyright is dedicated to the Public Domain.
 * https://creativecommons.org/publicdomain/zero/1.0/
 */

var global = newGlobal();
var array = new global.Int8Array(10);

assertEq(array.find(v => v == 1), undefined)
assertEq(array.findIndex(v => v == 0), 0)

if (typeof reportCompare === "function")
    reportCompare(true, true);