blob: 23aa5934a49f08aacf39f16035b4ea30c8c6858f (
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
tee_local 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
tee_local 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();
|