Skip to content

Commit fe6d304

Browse files
authored
fix: use object.assign instead of object.create (#16)
1 parent 0008b4b commit fe6d304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function runScript(script, options, extraOptions) {
2020
return new Promise((resolve, reject) => {
2121
extraOptions = extraOptions || {};
2222
options = options || {};
23-
options.env = options.env || Object.create(process.env);
23+
options.env = options.env || Object.assign({}, process.env);
2424
options.cwd = options.cwd || process.cwd();
2525
options.stdio = options.stdio || 'inherit';
2626
if (options.stdout) assert(is.writableStream(options.stdout), 'options.stdout should be writable stream');

0 commit comments

Comments
 (0)