linkerr-main.html 000644 000765 000024 00000000044 13213147140 015121 0 ustar 00lhansen staff 000000 000000
linkerr-worker.html 000644 000765 000024 00000000060 13213147112 015503 0 ustar 00lhansen staff 000000 000000
linkerr.js 000644 000765 000024 00000001067 13213150150 013650 0 ustar 00lhansen staff 000000 000000 /*
(module
(import "" "g" (func $g (param i32) (result i32)))
(func (export "f") (result i32)
(call $g (i32.const 42))))
*/
var bin = new Uint8Array([0,97,115,109,1,0,0,0,1,10,2,96,1,127,1,127,96,0,1,127,2,6,1,0,1,103,0,0,3,2,1,1,7,5,1,1,102,0,1,10,8,1,6,0,65,42,16,0,11]);
// In a worker, there is an appropriate error message if we do it this way:
//var mod = new WebAssembly.Module(bin);
//var ins = new WebAssembly.Instance(mod, { "": {} });
// In a worker, there is not an error message if we do it this way.
WebAssembly.instantiate(bin, { "": {} })
linkerr.wat 000644 000765 000024 00000000177 13213146237 014043 0 ustar 00lhansen staff 000000 000000 (module
(import "" "g" (func $g (param i32) (result i32)))
(func (export "f") (result i32)
(call $g (i32.const 42))))