Namespaces

This commit is contained in:
dcodeIO
2017-12-13 23:24:13 +01:00
parent 7d85b0cc7f
commit 99b0fdf7a8
30 changed files with 514 additions and 128 deletions

View File

@ -1,5 +1,6 @@
(module
(type $iii (func (param i32 i32) (result i32)))
(type $v (func))
(global $export/a i32 (i32.const 1))
(global $export/b i32 (i32.const 2))
(global $HEAP_START i32 (i32.const 4))
@ -8,6 +9,7 @@
(export "renamed_sub" (func $export/sub))
(export "a" (global $export/a))
(export "renamed_b" (global $export/b))
(export "two" (func $export/ns.two))
(export "memory" (memory $0))
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(return
@ -25,6 +27,8 @@
)
)
)
(func $export/ns.two (; 2 ;) (type $v)
)
)
(;
[program.elements]
@ -60,9 +64,13 @@
export/sub
export/a
export/b
export/ns
export/ns.one
export/ns.two
[program.exports]
export/add
export/renamed_sub
export/a
export/renamed_b
export/ns
;)