blob: a951b6747a3957b9c92ddcce4c3b731b396ebc73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
var bin = wasmTextToBinary(
`(module
(func (export "f4786") (result i32)
(local i32 i64 i64 i64 f32)
i32.const 1
local.tee 0
local.get 0
local.get 0
local.get 0
local.get 0
local.get 0
local.get 0
local.get 0
if (result i32)
local.get 0
else
local.get 0
local.tee 0
local.get 0
br_if 1
end
drop
drop
drop
drop
drop
drop
drop))`);
var ins = new WebAssembly.Instance(new WebAssembly.Module(bin));
ins.exports.f4786();
|