lib: fs.rmdir should accept null/undefined in options
From the documentation, all fields for options for fs.rmdir
are optional.
However, if undefined
or null
is given, it throws error.
I think it is inconsistent with other APIs which accept undefined
or null
and use default values as fallback.
Checklist
-
tests and/or benchmarks are included -
commit message follows commit guidelines