Skip to content

Commit

Permalink
pop edited
Browse files Browse the repository at this point in the history
  • Loading branch information
impact-maker committed Mar 28, 2024
1 parent 6b22bf0 commit b7dbaa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library_dylink.js
Original file line number Diff line number Diff line change
Expand Up @@ -1155,13 +1155,13 @@ var LibraryDylink = {
function errorCallback(e) {
var filename = UTF8ToString(handle + C_STRUCTS.dso.name);
dlSetError(`Could not load dynamic lib: ${filename}\n${e}`);
runtimeKeepalivePop();
{{{ runtimeKeepalivePop() }}}
if(errorFnPtr) {
callUserCallback(() => dynCall('vpp', errorFnPtr, [0, user_data]));
}
}
function successCallback() {
runtimeKeepalivePop();
{{{ runtimeKeepalivePop() }}}
if(successFnPtr) {
callUserCallback(() => dynCall('vpp', successFnPtr, [0, user_data]));
}
Expand All @@ -1174,7 +1174,7 @@ var LibraryDylink = {

_emscripten_dlopen_js__deps: ['$dlopenInternal', '$runtimeKeepalivePush', '$runtimeKeepalivePop', '$dlSetError', '$dynCall', '$promiseToCallback'],
_emscripten_dlopen_js: function(handle, onsuccess, onerror, user_data) {
runtimeKeepalivePush();
{{{ runtimeKeepalivePush() }}}
var promise = dlopenInternal(handle, { loadAsync: true });

// Utilize the $promiseToCallback utility function
Expand Down

0 comments on commit b7dbaa9

Please sign in to comment.