Fix two tiny but fundamental breakages in config.js

Due to this, concatenating scripts broke (missing semi-colon meant
latest IIFEs were treated as arguments and totally broke) and anonymous
module handling failed and threw various errors due to unavailable
handles.
This commit is contained in:
Tim Perry
2025-07-31 15:38:03 +02:00
parent 70d8e301dd
commit 48fd909ed5
+2 -2
View File
@@ -203,7 +203,7 @@ new ApiResolver('module').enumerateMatches('exports:linker*!*dlopen*').forEach((
}
},
onLeave(retval) {
if (!this.path || retval.isNull()) return;
if (!this.path || !retval || retval.isNull()) return;
if (!MODULE_LOAD_CALLBACKS[this.moduleName]) return;
let module = Process.findModuleByName(this.moduleName)
@@ -252,4 +252,4 @@ const getAnonymousModule = (name, path, handle) => {
name,
path,
}
}
};