I am writing an emscripten compiled web assembly project to get Lua working alongside node, this is working out very nicely because I can get values from Lua back into CPP. I have bootstraped a node.js clone module system so this means I will always get a module.exports table back. What I'd love to know is how can I iterate over this table and convert it to a cpp map to return to JavaScript. I'm using c++17 I think...
Anyways hope any inspirational ideas can help. Much wow and thanks.