From 48fd909ed5e016b771cf4d645ce30cbab217e234 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Thu, 31 Jul 2025 15:38:03 +0200 Subject: [PATCH] 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. --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index cdd3898..42326bf 100644 --- a/config.js +++ b/config.js @@ -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, } -} +}; \ No newline at end of file