update tests from core repo
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
(func (export "load_at_page_size") (result i32) (i32.load (i32.const 0x10000)))
|
||||
(func (export "store_at_page_size") (i32.store (i32.const 0x10000) (i32.const 3)))
|
||||
|
||||
(func (export "grow") (param $sz i32) (result i32) (grow_memory (get_local $sz)))
|
||||
(func (export "size") (result i32) (current_memory))
|
||||
(func (export "grow") (param $sz i32) (result i32) (memory.grow (get_local $sz)))
|
||||
(func (export "size") (result i32) (memory.size))
|
||||
)
|
||||
|
||||
(assert_return (invoke "size") (i32.const 0))
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
(module
|
||||
(memory 0)
|
||||
(func (export "grow") (param i32) (result i32) (grow_memory (get_local 0)))
|
||||
(func (export "grow") (param i32) (result i32) (memory.grow (get_local 0)))
|
||||
)
|
||||
|
||||
(assert_return (invoke "grow" (i32.const 0)) (i32.const 0))
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
(module
|
||||
(memory 0 10)
|
||||
(func (export "grow") (param i32) (result i32) (grow_memory (get_local 0)))
|
||||
(func (export "grow") (param i32) (result i32) (memory.grow (get_local 0)))
|
||||
)
|
||||
|
||||
(assert_return (invoke "grow" (i32.const 0)) (i32.const 0))
|
||||
|
||||
Reference in New Issue
Block a user