forked from mirrors/0ad
b8348bec55
During hotloading the `ScriptRequest` was constructed from a `JSContext*`. That requires that already an other `ScriptRequest` is active. Which isn't always the case. Now The `ScriptRequest` is constructed from a `ScriptInterface&`. Storing a `ScriptInterface&` in the `ModuleLoader::Result` allows to remove the `m_Result` as it is retrieved from the `ScriptInterface`.