Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Getting errors on memory.grow and memory.size #450

Open
theblockstalk opened this issue Jan 8, 2020 · 0 comments
Open

Getting errors on memory.grow and memory.size #450

theblockstalk opened this issue Jan 8, 2020 · 0 comments

Comments

@theblockstalk
Copy link

I create a new Wat project in

I edit a wat file with memory.grow and memory.size, such as the one below (just for illustration):

(module
  (func $add (param $lhs i32) (param $rhs i32) (result i32)
    get_local $lhs
    get_local $rhs
    memory.grow
    memory.size
    i32.add)
  (export "add" (func $add))
)

and on build this gets the following errors

    memory.grow
test.wat:6:5: error: unexpected token memory.size.
    memory.size

These are the same errors reported in WebAssembly/wabt#852

Perhaps you need to update to the latest version of wabt in Studio?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant