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

Imported JavaScript function always returning NaN #14

Closed
Tracked by #242
lastmjs opened this issue Jan 15, 2020 · 1 comment · Fixed by #18
Closed
Tracked by #242

Imported JavaScript function always returning NaN #14

lastmjs opened this issue Jan 15, 2020 · 1 comment · Fixed by #18

Comments

@lastmjs
Copy link

lastmjs commented Jan 15, 2020

I have an AssemblyScript import that looks like this:

export declare function doSomething(): f64;

doSomething is just a JavaScript function that returns a number. Whenever I use it in AssemblyScript and try to get the value back to JavaScript, it returns NaN.

@torch2424
Copy link
Owner

Ah yes, this is not currently supported, and shown as not supported in the compatibility table on the README.

I told myself if someone opens an issue, I'd look more into how I can support this. But since you opened the issue, I think the time is now haha! 😂 Thank you for this! 😄

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

Successfully merging a pull request may close this issue.

2 participants