Upstream decided to expose JS_GetModuleNamespace as an API to get the exports of a ESModule, see here:
https://github.com/bellard/quickjs/blob/2c793e50979e64a51178c1048071c97722eb1bf1/quickjs.h#L879
My library supports both upstream and quickjs-ng, so currently I need to patch in JS_GetModuleNamespace in my vendored copy of quickjs-ng