diff --git a/lib/core/engine/command/measure.js b/lib/core/engine/command/measure.js index b62984625..7fbddbc7a 100644 --- a/lib/core/engine/command/measure.js +++ b/lib/core/engine/command/measure.js @@ -35,7 +35,7 @@ function getNewResult() { * @hideconstructor */ export class Measure { - constructor( + constructor({ browser, index, pageCompleteCheck, @@ -49,7 +49,7 @@ export class Measure { context, screenshotManager, options - ) { + }) { /** * @private */ diff --git a/lib/core/engine/commands.js b/lib/core/engine/commands.js index b45a0759a..b5911f5ee 100644 --- a/lib/core/engine/commands.js +++ b/lib/core/engine/commands.js @@ -51,7 +51,7 @@ export class Commands { postURLScripts, options ) { - const measure = new Measure( + const measure = new Measure({ browser, index, pageCompleteCheck, @@ -65,7 +65,7 @@ export class Commands { context, screenshotManager, options - ); + }); /** * Provides functionality to collect perfetto traces.