sql.js
sql.js copied to clipboard
Use `var module` to prevent emcc pollution
for make 'use strict' compatible
Looking at the comment above, it looks like the variable is referencing the global module on purpose.
https://nodejs.org/api/modules.html#module
I think it's okay, because its purpose is removing if (typeof module !== 'undefined') { module['exports'] = Module } in the emcc output. Currently emcc output does not use globalThis.module, window.module, or something else.
Ok ! Can you add a comment about that above, then ?