Debian Codegraph @

js/src/jit-test/tests/basic/typedarray-selfhosted-cross-compartment.js

raw
1 /*
2 * Any copyright is dedicated to the Public Domain.
3 * https://creativecommons.org/publicdomain/zero/1.0/
4 */
5
6 var global = newGlobal();
7 var array = new global.Int8Array(10);
8
9 assertEq(array.find(v => v == 1), undefined)
10 assertEq(array.findIndex(v => v == 0), 0)
11
12 if (typeof reportCompare === "function")
13 reportCompare(true, true);