blob: b1ec7388b10d1b965db14397e5f52eea507e4c60 [file] [log] [blame]
const file = "175693.wasm";
const verbose = false;
if (typeof console === 'undefined') {
console = { log: print };
}
var binary;
if (typeof process === 'object' && typeof require === 'function' /* node.js detection */) {
var args = process.argv.slice(2);
binary = require('fs').readFileSync(file);
if (!binary.buffer) binary = new Uint8Array(binary);
} else {
var args;
if (typeof scriptArgs != 'undefined') {
args = scriptArgs;
} else if (typeof arguments != 'undefined') {
args = arguments;
}
if (typeof readbuffer === 'function') {
binary = new Uint8Array(readbuffer(file));
} else {
binary = read(file, 'binary');
}
}
var instance = new WebAssembly.Instance(new WebAssembly.Module(binary), {});
if (instance.exports.hangLimitInitializer) instance.exports.hangLimitInitializer();
try {
if (verbose)
console.log('calling: func_0');
instance.exports.func_0();
} catch (e) {
if (verbose)
console.log(' exception: ' + e);
}
if (instance.exports.hangLimitInitializer) instance.exports.hangLimitInitializer();
try {
if (verbose)
console.log('calling: hangLimitInitializer');
instance.exports.hangLimitInitializer();
} catch (e) {
if (verbose)
console.log(' exception: ' + e);
}
if (verbose)
console.log('done.')