File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1049,10 +1049,7 @@ var LibraryDylink = {
10491049 // when loadDynamicLibrary did not have flags, libraries were loaded
10501050 // globally & permanently
10511051
1052- // Extract the filename part if libName is an absolute path
1053- // This is to avoid problem when the same library is loaded from multiple folders.
1054- var basename = libName . split ( '/' ) . pop ( ) ;
1055- var dso = LDSO . loadedLibsByName [ basename ] ;
1052+ var dso = LDSO . loadedLibsByName [ libName ] ;
10561053 if ( dso ) {
10571054 // the library is being loaded or has been loaded already.
10581055#if ASSERTIONS
@@ -1083,7 +1080,7 @@ var LibraryDylink = {
10831080 }
10841081
10851082 // allocate new DSO
1086- dso = newDSO ( basename , handle , 'loading' ) ;
1083+ dso = newDSO ( libName , handle , 'loading' ) ;
10871084 dso . refcount = flags . nodelete ? Infinity : 1 ;
10881085 dso . global = flags . global ;
10891086
You can’t perform that action at this time.
0 commit comments