Skip to content

Commit e31ed5b

Browse files
committed
Don't mutate user settings
Fixes #1067 Closes #1022
1 parent 2cb0d07 commit e31ed5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/collect/node-runner.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class LighthouseRunner {
4242
* @return {{args: string[], cleanupFn: () => void}}
4343
*/
4444
static computeArgumentsAndCleanup(url, options) {
45-
const settings = options.settings || {};
45+
const settings = {...options.settings};
4646
const chromeFlags = options.settings && options.settings.chromeFlags;
4747
let chromeFlagsAsString = chromeFlags || '';
4848
if (!options.headful) chromeFlagsAsString += ' --headless=new';

0 commit comments

Comments
 (0)