[WASM-References] Rename anyfunc to funcref
[WebKit-https.git] / JSTests / wasm / stress / wasm-table-grow-initialize.js
1 function shouldBe(actual, expected) {
2     if (actual !== expected)
3         throw new Error('bad value: ' + actual);
4 }
5
6 var table = new WebAssembly.Table({
7     element: "funcref",
8     initial: 20
9 });
10
11 table.grow(5)
12 for (var i = 0; i < 25; ++i)
13     shouldBe(table.get(i), null);