Home | History | Annotate | Download | only in wasm

Lines Matching refs:instance

20     var instance = Wasm.instantiateModule(buffer);
21 assertEquals(11, instance.exports.blarg());
32 var instance = Wasm.instantiateModule(buffer, {print: print});
34 instance.exports.main();
45 var instance = Wasm.instantiateModule(buffer);
46 assertEquals(19, instance.exports.main(19));
47 assertEquals(27777, instance.exports.main(27777));
67 var instance = Wasm.instantiateModule(buffer);
68 assertEquals(19, instance.exports.main(19));
69 assertEquals(27777, instance.exports.main(27777));
81 var instance = module.instantiate();
82 assertEquals(44, instance.exports.main(11, 33));
83 assertEquals(7777, instance.exports.main(2222, 5555));
96 var instance = module.instantiate();
97 assertEquals(44, instance.exports.main(0, 11, 33));
98 assertEquals(7777, instance.exports.main(0, 2222, 5555));
99 assertThrows(function() { instance.exports.main(1, 1, 1); });
111 var instance = Wasm.instantiateModule(buffer);
112 assertEquals(151587081, instance.exports.load(0));
125 var instance = Wasm.instantiateModule(array);
126 assertEquals(17, instance.exports.blarg());
138 var instance = Wasm.instantiateModule(array2);
139 assertEquals(17, instance.exports.blarg());
150 var instance = Wasm.instantiateModule(buffer, {mod: {print: print}});
152 instance.exports.main();