You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os: fix tmpdir() returning 'undefined\temp' on Windows
When process.env is cleared (e.g., in sandboxed environments),
os.tmpdir() would return 'undefined\temp' on Windows due to
string concatenation with undefined values.
This fix:
- Checks for valid environment variables before using them
- Falls back to getTempDir() when env vars are unavailable
- Adds test case to prevent regression
Reported-by: @rhysdFixes: #60582@ry Could you please review this fix?
0 commit comments