summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/SIMD/bug1303780-gc-args.js
blob: a894d532ef029bdd63668a67667c16c98acc352c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
if (typeof gczeal === 'undefined' || typeof SIMD === 'undefined') {
    quit();
}

gczeal(14,2);
var Float32x4 = SIMD.Float32x4;
function test() {
    var v = Float32x4(1,2,3,4);
    var good = {valueOf: () => 42};
    Float32x4.replaceLane(v, 0, good);
}
test();