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

Document //export requirement #305

Open
aykevl opened this issue Oct 27, 2022 · 1 comment
Open

Document //export requirement #305

aykevl opened this issue Oct 27, 2022 · 1 comment

Comments

@aykevl
Copy link
Member

aykevl commented Oct 27, 2022

The page here says the following:

// This function is imported from JavaScript, as it doesn't define a body.
// You should define a function named 'main.add' in the WebAssembly 'env'
// module from JavaScript.
func add(x, y int) int

That's outdated, and needs to be updated.

@alvarolm
Copy link

@aykevl thanks for pointing this out !
really interested in the correct procedure, it should be done using syscall/js ?

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

No branches or pull requests

2 participants