Join Slack
Powered by
I’ve generated some Javascript code using emscript...
# javascript
a
Adam S
06/21/2023, 12:32 PM
I’ve generated some Javascript code using emscripten, but I’m struggling to figure out how to write Kotlin bindings. The best I can get is
libpcre2x is undefined
or
libpcre2x is not a function
. Any tips?
libpcre2x.js
Adam S
06/21/2023, 12:34 PM
Untitled.cpp
Untitled.cpp
Adam S
06/21/2023, 12:34 PM
I’m using Kotlin 1.9.0-RC and I would like to get it working on both NodeJS and Browser targets - but for now anything will do!
Adam S
06/22/2023, 10:30 AM
Got it working with JS’
require()
, casting to a function type, and awaiting the
Promise
pcre.kt
Open in Slack
Previous
Next