Skip to content

Commit f4fecbb

Browse files
committed
Revert "Store filename only"
This reverts commit af36541.
1 parent af36541 commit f4fecbb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib/libdylink.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)