blob: bfe6a748eb4b0e6c4c7dbdd2ddfb2c071dc3ec94 [file] [log] [blame]
var o = {};
var jsFunc = function (arg1, arg2) {
return o + arg1;
}
var importObject = {
env: {
jsFunc
}
};
var wasmCode = new Uint8Array([0x0, 0x61, 0x73, 0x6d, 0x1, 0x0, 0x0, 0x0, 0x1, 0xe, 0x3, 0x60, 0x2, 0x7c, 0x7c, 0x1, 0x7f, 0x60, 0x0, 0x0, 0x60, 0x0, 0x1, 0x7f, 0x2, 0xe, 0x1, 0x3, 0x65, 0x6e, 0x76, 0x6, 0x6a, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x0, 0x0, 0x3, 0x3, 0x2, 0x1, 0x2, 0x4, 0x5, 0x1, 0x70, 0x1, 0x1, 0x1, 0x5, 0x3, 0x1, 0x0, 0x2, 0x6, 0x15, 0x3, 0x7f, 0x1, 0x41, 0x80, 0x88, 0x4, 0xb, 0x7f, 0x0, 0x41, 0x80, 0x88, 0x4, 0xb, 0x7f, 0x0, 0x41, 0x80, 0x8, 0xb, 0x7, 0x2c, 0x4, 0x6, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x2, 0x0, 0xb, 0x5f, 0x5f, 0x68, 0x65, 0x61, 0x70, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x3, 0x1, 0xa, 0x5f, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x64, 0x3, 0x2, 0x4, 0x6d, 0x61, 0x69, 0x6e, 0x0, 0x2, 0xa, 0x1f, 0x2, 0x2, 0x0, 0xb, 0x1a, 0x0, 0x44, 0x43, 0x43, 0x43, 0x0, 0x0, 0x0, 0xff, 0xff, 0x44, 0x43, 0x43, 0x43, 0x0, 0x0, 0x0, 0xff, 0xff, 0x10, 0x80, 0x80, 0x80, 0x80, 0x0, 0xb, 0x0, 0x4d, 0xb, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x3d, 0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x6c, 0x64, 0x5f, 0x31, 0x36, 0x6a, 0x74, 0x37, 0x69, 0x74, 0x6a, 0x70, 0x69, 0x6b, 0x69, 0x2e, 0x24, 0x0, 0x0, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x63, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x5, 0x2, 0x5, 0x0, 0x0, 0x0, 0x18, 0x5, 0xa, 0xa, 0x8, 0x2f, 0x5, 0x3, 0x6, 0x66, 0x2, 0x1, 0x0, 0x1, 0x1, 0x0, 0x72, 0xa, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x63, 0x6c, 0x61, 0x6e, 0x67, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x38, 0x2e, 0x30, 0x2e, 0x30, 0x20, 0x28, 0x74, 0x72, 0x75, 0x6e, 0x6b, 0x20, 0x33, 0x34, 0x31, 0x39, 0x36, 0x30, 0x29, 0x0, 0x2f, 0x74, 0x6d, 0x70, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x31, 0x36, 0x6a, 0x74, 0x37, 0x69, 0x74, 0x6a, 0x70, 0x69, 0x6b, 0x69, 0x2e, 0x24, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x63, 0x0, 0x2f, 0x74, 0x6d, 0x70, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x31, 0x36, 0x6a, 0x74, 0x37, 0x69, 0x74, 0x6a, 0x70, 0x69, 0x6b, 0x69, 0x2e, 0x24, 0x0, 0x6d, 0x61, 0x69, 0x6e, 0x0, 0x69, 0x6e, 0x74, 0x0, 0x0, 0x29, 0x4, 0x6e, 0x61, 0x6d, 0x65, 0x1, 0x22, 0x3, 0x0, 0x6, 0x6a, 0x73, 0x46, 0x75, 0x6e, 0x63, 0x1, 0x11, 0x5f, 0x5f, 0x77, 0x61, 0x73, 0x6d, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2, 0x4, 0x6d, 0x61, 0x69, 0x6e]);
var wasmModule = new WebAssembly.Module(wasmCode);
var wasmInstance = new WebAssembly.Instance(wasmModule, importObject);
var wasmInstanceExported = wasmInstance.exports;
var res = wasmInstanceExported.main();
if (res != 0)
throw "FAILED";