Commit 92875501 authored by Greg Sabia Tucker's avatar Greg Sabia Tucker Committed by Fedor Indutny
Browse files

child_process: spawn() does not throw TypeError



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: default avatarFedor Indutny <fedor@indutny.com>
parent 17fbdc18
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