BTW it is possible to get the javascript native na...
# javascript
d
BTW it is possible to get the javascript native name of a variable and of a method? I will need it to generate code at runtime here: github.com/kpspemu/kpspemu/tree/master/dynarek
k
It's not recommended to do. In case of JavaScript people often use minifiers (like uglify.js) to reduce JS size. These minifiers rename variables
I'd suggest generate Kotlin code before it gets compiled to JS
d
Yeah. But i have to generate it at runtime. It is a jitter. I need to decode MIPS instructions and generate javascript code that use and write to registers (fields/properties) and that call functions. Maybe converting functions to string calling the required function allows me to decode the name in a way that work with minifiers. In my case i dont need minifiers
Maybe getting a function reference would work. Ill investigate