I have a webassembly function that takes an integer as a parameter.
I get the value out of a textarea and pass it in. But I get this console
error:
Uncaught TypeError: Cannot convert "10" to int
at Object.toWireType (bdl.js:1) ...
Do I have to force a string variable into an integer variable in javascript
somehow?
I thought all variables were typeless.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/69cdb0f9-1e08-4471-be10-496898d72a10%40googlegroups.com.