Skip to content

Commit 1357cc6

Browse files
vikaspotluri123acburdine
authored andcommitted
fix(ui): don't overwrite default options
Object.assign writes values from args[1+] into args[0] so defaultOptions were being overridden
1 parent e9ec39a commit 1357cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class UI {
3535
* @param {Object} options
3636
*/
3737
constructor(options) {
38-
this.options = Object.assign(defaultOptions, options);
38+
this.options = Object.assign({}, defaultOptions, options);
3939

4040
// Set up i/o streams
4141
this.stdin = this.options.stdin;

0 commit comments

Comments
 (0)