fix canary

This commit is contained in:
Vendicated 2025-05-13 21:15:03 +02:00
parent 92ff9c1ca4
commit e69575f273
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -412,9 +412,12 @@ function runFactoryWithWrap(patchedFactory: PatchedModuleFactory, thisArg: unkno
exports = module.exports; exports = module.exports;
if (typeof require === "function" && require.c) { if (typeof require === "function" && require.c) {
// module might not have been fully initialised yet
try {
if (_blacklistBadModules(require.c, exports, module.id)) { if (_blacklistBadModules(require.c, exports, module.id)) {
return factoryReturn; return factoryReturn;
} }
} catch { }
} }
if (exports == null) { if (exports == null) {