blob: c8af59dcd8cb3a7555777a4f9856b1872373649e [file] [log] [blame]
#if RELOCATABLE
// In RELOCATABLE mode we create the table in JS.
var wasmTable = new WebAssembly.Table({
'initial': {{{ INITIAL_TABLE }}},
#if !ALLOW_TABLE_GROWTH
'maximum': {{{ INITIAL_TABLE }}},
#endif
'element': 'anyfunc'
});
#else
// In regular non-RELOCATABLE mode the table is exported
// from the wasm module and this will be assigned once
// the exports are available.
var wasmTable;
#endif