emscripten template: make the module global

This commit is contained in:
Frank Denis
2017-10-05 00:16:37 +02:00
parent cc8cd391c9
commit 752c1fff2d
+3 -2
View File
@@ -28,9 +28,10 @@ body {
<h1></h1>
<section class="test" id="test-res"></section>
<script>
var Module = { preRun: function() { performance.mark('bench_start') } };
function runTest(tname) {
var xhr, expected, hn, idx = 0, passed = true,
Module = { preRun: function() { performance.mark('bench_start') } };
var xhr, expected, hn, idx = 0, passed = true;
function outputReceived(e) {
var found = e.data;