Commit 1317252d authored by Voltrex's avatar Voltrex Committed by Antoine du Hamel
Browse files

fs: allow empty string for temp directory prefix

The `fs` lib module's `mkdtemp()` and `mkdtempSync()` methods were
missing a validator, and weren't allowing the empty string as a valid
prefix.

PR-URL: https://github.com/nodejs/node/pull/39028


Reviewed-By: default avatarDarshan Sen <raisinten@gmail.com>
Reviewed-By: default avatarZijian Liu <lxxyxzj@gmail.com>
Reviewed-By: default avatarAntoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarKhaidi Chu <i@2333.moe>
parent 46a7e619
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment