summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/table-of-anyref.js
blob: a19ec95be5fea9478844aa9bdc163d1c25b7efd3 (plain)
1
2
3
4
5
6
7
8
9
// Faulty prebarrier for tables.
gczeal(4, 8);
let ins = wasmEvalText(
    `(module
       (table (export "t") 10 externref)
       (func (export "set_externref") (param i32) (param externref)
         (table.set (get_local 0) (get_local 1))))`);
ins.exports.set_externref(3, {});
ins.exports.set_externref(3, null);