=== default ===
debugInfo=false
(module
 (type $0 (func))
 (memory $0 0)
 (export "test" (func $0))
 (func $0
  (nop)
 )
)

=== with debug info ===
debugInfo=true
(module
 (type $v (func))
 (memory $0 0)
 (export "test" (func $test))
 (func $test
  (nop)
 )
)

=== without debug info ===
debugInfo=false
(module
 (type $0 (func))
 (memory $0 0)
 (export "test" (func $0))
 (func $0
  (nop)
 )
)

