From 069fc3229a4039e1a5123a5e9563ebf6285d811e Mon Sep 17 00:00:00 2001 From: Steve Akinyemi Date: Tue, 6 Nov 2018 18:24:03 +0100 Subject: [PATCH] Add example grow_memory wast file --- examples/grow_memory.wat | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/grow_memory.wat b/examples/grow_memory.wat index 64e9e6999..61d90bb4f 100644 --- a/examples/grow_memory.wat +++ b/examples/grow_memory.wat @@ -1,9 +1,8 @@ (module (memory 1) - (func $grow_mem (result i32) - (grow_memory (i32.const 1)) - ) (func $main (export "main") (result i32) - (call $grow_mem) + (drop (memory.grow (i32.const 1))) + (i32.store (i32.const 400) (i32.const 1600)) + (i32.load (i32.const 1600)) ) )