We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4ca4f0 commit 5aa5816Copy full SHA for 5aa5816
libscript/src/script-module.cpp
@@ -742,6 +742,10 @@ bool MCScriptEnsureModuleIsUsable(MCScriptModuleRef self)
742
void *t_symbol;
743
#ifdef _WIN32
744
t_symbol = GetProcAddress(GetModuleHandle(NULL), MCStringGetCString(t_type -> binding));
745
+#elif defined(__EMSCRIPTEN__)
746
+ void *t_handle = dlopen(NULL, RTLD_LAZY);
747
+ t_symbol = dlsym(t_handle, MCStringGetCString(t_type->binding));
748
+ dlclose(t_handle);
749
#else
750
t_symbol = dlsym(RTLD_DEFAULT, MCStringGetCString(t_type -> binding));
751
#endif
0 commit comments