getting a number out of a text area

14 views
Skip to first unread message

Shawn Riordan

unread,
Feb 28, 2020, 7:55:46 PM2/28/20
to emscripten-discuss
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.
Reply all
Reply to author
Forward
0 new messages