summaryrefslogtreecommitdiff
path: root/test/binaryen.js/call_import_error.js.txt
blob: 61e3f9339e24c7dbe27a8a198091c20ccc26ad5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(module
 (type $v (func))
 (import "env" "fn" (func $fn))
 (memory $0 0)
 (export "main" (func $main))
 (func $main (type $v)
  (call $fn)
 )
)

[wasm-validator error in function $main] unexpected false: call target must exist, on 
(call $fn)
(perhaps it should be a CallImport instead of Call?)
(module
 (type $v (func))
 (import "env" "fn" (func $fn))
 (memory $0 0)
 (export "main" (func $main))
 (func $main (type $v)
  (call $fn)
 )
)