mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 18:51:43 +00:00
Add WASI bindings
This commit is contained in:
11
tests/compiler/wasi.optimized.wat
Normal file
11
tests/compiler/wasi.optimized.wat
Normal file
@ -0,0 +1,11 @@
|
||||
(module
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $null (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
1
tests/compiler/wasi.ts
Normal file
1
tests/compiler/wasi.ts
Normal file
@ -0,0 +1 @@
|
||||
import "bindings/wasi";
|
11
tests/compiler/wasi.untouched.wat
Normal file
11
tests/compiler/wasi.untouched.wat
Normal file
@ -0,0 +1,11 @@
|
||||
(module
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 8))
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $null (; 0 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user