mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Ensure TypeError is thrown, fix a bug where `env` option was assuming the option was actually an object. This case is especially bad because it then sets `env == null` instead of using `process.env`. Fix #7456 Signed-off-by: Fedor Indutny <fedor@indutny.com>