fs: don't alter user provided `options` object
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
fs
Description of change
This patch makes a copy of the options
object before altering it.
cc @nodejs/fs