Node.js missing require inside try/catch silently kills win32 code path

Domain: devops · Evidence E0 — Contributor self-reported
nodejsrequiretry-catchwindowsdebuggingReferenceError

Summary

Missing `require("node:os")` inside a `try/catch(_){}` block silently kills the entire Windows code path. `os.tmpdir()` throws `ReferenceError`, which is caught…

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons