Switch uses of getCurrentModule to a new getGlobals()
The callers were assuming that the module represents the globals, which is not always true. We can currently fetch globals from the interpreter, but not the jit. We don't allow custom globals through the jit, so for now we can just return the module; I think we should be able to support the jit by adding the globals as a stackmap arg.
Showing
Please register or sign in to comment