mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(tracing): start without options (#4388)
This commit is contained in:
@@ -31,9 +31,9 @@ class Tracing {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {!{path: string, screenshots?: boolean, categories?: !Array<string>}} options
|
||||
* @param {!{path?: string, screenshots?: boolean, categories?: !Array<string>}} options
|
||||
*/
|
||||
async start(options) {
|
||||
async start(options = {}) {
|
||||
assert(!this._recording, 'Cannot start recording trace while already recording trace.');
|
||||
|
||||
const defaultCategories = [
|
||||
@@ -75,7 +75,7 @@ class Tracing {
|
||||
|
||||
/**
|
||||
* @param {string} handle
|
||||
* @param {string} path
|
||||
* @param {?string} path
|
||||
*/
|
||||
async _readStream(handle, path) {
|
||||
let eof = false;
|
||||
|
||||
Reference in New Issue
Block a user