Skip to content

Commit 1db2a1e

Browse files
authored
Fix name of dummy emscripten_dlopen symbol. NFC (#19016)
This symbol doesn't start with an underscore, but this code is only used to aid in debugging when developer try to call these functions but without linking with `-sMAIN_MODULE`.
1 parent 6f793af commit 1db2a1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/library_dylink.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ var LibraryDylink = {
246246
_dlsym_js__deps: [function() { error(dlopenMissingError); }],
247247
_dlsym_catchup_js__deps: [function() { error(dlopenMissingError); }],
248248
dlopen__deps: [function() { error(dlopenMissingError); }],
249-
_emscripten_dlopen__deps: [function() { error(dlopenMissingError); }],
249+
emscripten_dlopen__deps: [function() { error(dlopenMissingError); }],
250250
__dlsym__deps: [function() { error(dlopenMissingError); }],
251251
dladdr__deps: [function() { error(dlopenMissingError); }],
252252
#else
@@ -256,7 +256,7 @@ var LibraryDylink = {
256256
_dlsym_js__deps: ['$dlopenMissingError'],
257257
_dlsym_catchup_js__deps: ['$dlopenMissingError'],
258258
dlopen__deps: ['$dlopenMissingError'],
259-
_emscripten_dlopen__deps: ['$dlopenMissingError'],
259+
emscripten_dlopen__deps: ['$dlopenMissingError'],
260260
__dlsym__deps: ['$dlopenMissingError'],
261261
dladdr__deps: ['$dlopenMissingError'],
262262
#endif
@@ -275,7 +275,7 @@ var LibraryDylink = {
275275
dlopen: function(handle) {
276276
abort(dlopenMissingError);
277277
},
278-
_emscripten_dlopen: function(handle, onsuccess, onerror, user_data) {
278+
emscripten_dlopen: function(handle, onsuccess, onerror, user_data) {
279279
abort(dlopenMissingError);
280280
},
281281
__dlsym: function(handle, symbol) {

0 commit comments

Comments
 (0)