diff --git a/demo/AngryBots/AngryBots-0xc.wast.gz b/demo/AngryBots/AngryBots-0xc.wast.gz deleted file mode 100644 index b0e6810f..00000000 Binary files a/demo/AngryBots/AngryBots-0xc.wast.gz and /dev/null differ diff --git a/demo/AngryBots/AngryBots12.wasm b/demo/AngryBots/AngryBots12.wasm deleted file mode 100644 index 9161c0ab..00000000 Binary files a/demo/AngryBots/AngryBots12.wasm and /dev/null differ diff --git a/demo/AngryBots/Release/AngryBots.js b/demo/AngryBots/Release/AngryBots.js index 36db318c..78aaaae2 100644 --- a/demo/AngryBots/Release/AngryBots.js +++ b/demo/AngryBots/Release/AngryBots.js @@ -97,16 +97,11 @@ function integrateWasmJS(Module) { }; info["global.Math"] = global.Math; info["env"] = env; - if (Wasm.experimentalVersion < 0xc || typeof WebAssembly == "undefined") { - var exports = Wasm.instantiateModule(binary, info).exports; - mergeMemory(exports.memory); - applyMappedGlobals(); - return exports; - } - var exports = new WebAssembly.Instance(new WebAssembly.Module(binary), info).exports; - mergeMemory(exports.memory.buffer); + var instance; + instance = Wasm.instantiateModule(binary, info).exports; + mergeMemory(instance.memory); applyMappedGlobals(); - return exports; + return instance; }); } Module["preRun"].push((function() {