net: handle normalized args in normalizeArgs()
This commit allows normalizeArgs()
to be called with its own previous output. Prior to this change, multiple calls to normalizeArgs()
would create a nested structure that produced invalid arguments.
cc: @vdeturckheim @joyeecheung @mcollina @jasnell (from https://github.com/othiym23/async-listener/pull/110)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
net