Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples using get_local should use local.get #6

Closed
pjmlp opened this issue Jun 5, 2022 · 1 comment
Closed

Examples using get_local should use local.get #6

pjmlp opened this issue Jun 5, 2022 · 1 comment

Comments

@pjmlp
Copy link

pjmlp commented Jun 5, 2022

The Webassembly standard renamed get_local into local.get and the examples using it fail in modern wat2wasm versions, e.g 1.0.29

WebAssembly/spec#884

user@host:~/Documents/wasm/wabt-playground$ ../wabt/bin/wat2wasm add.wat 
add.wat:3:3: error: unexpected token get_local, expected ).
		get_local $lhs
  ^^^^^^^^^
add.wat:4:3: error: unexpected token get_local.
		get_local $rhs
  ^^^^^^^^^

Fix is to use local.get instead.

@shruthis-shetty
Copy link

Hi @pjmlp ,
The code has become outdated because of the underlying library change.

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

No branches or pull requests

2 participants