@@ -964,8 +964,6 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
964964 }
965965 let objectPopoverHelper : ObjectUI . ObjectPopoverHelper . ObjectPopoverHelper | null ;
966966 return {
967- // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
968- // @ts -expect-error
969967 box : span . boxInWindow ( ) ,
970968 show : async ( popover : UI . GlassPane . GlassPane ) => {
971969 if ( ! heapProfilerModel ) {
@@ -1364,7 +1362,7 @@ export class HeapSnapshotProfileType extends
13641362 return ;
13651363 }
13661364
1367- let profile : HeapProfileHeader = new HeapProfileHeader ( heapProfilerModel , this ) ;
1365+ let profile = new HeapProfileHeader ( heapProfilerModel , this ) ;
13681366 this . setProfileBeingRecorded ( profile ) ;
13691367 this . addProfile ( profile ) ;
13701368 profile . updateStatus ( i18nString ( UIStrings . snapshotting ) ) ;
@@ -1649,33 +1647,29 @@ export interface TrackingHeapSnapshotProfileTypeEventTypes {
16491647
16501648export class HeapProfileHeader extends ProfileHeader {
16511649 readonly heapProfilerModelInternal : SDK . HeapProfilerModel . HeapProfilerModel | null ;
1652- maxJSObjectId : number ;
1653- workerProxy : HeapSnapshotWorkerProxy | null ;
1654- receiver : Common . StringOutputStream . OutputStream | null ;
1655- snapshotProxy : HeapSnapshotProxy | null ;
1650+ maxJSObjectId = - 1 ;
1651+ workerProxy : HeapSnapshotWorkerProxy | null = null ;
1652+ receiver : Common . StringOutputStream . OutputStream | null = null ;
1653+ snapshotProxy : HeapSnapshotProxy | null = null ;
16561654 readonly loadPromise : Promise < HeapSnapshotProxy > ;
16571655 fulfillLoad : ( value : HeapSnapshotProxy | PromiseLike < HeapSnapshotProxy > ) => void ;
1658- totalNumberOfChunks : number ;
1659- bufferedWriter : Bindings . TempFile . TempFile | null ;
1660- onTempFileReady : ( ( ) => void ) | null ;
1656+ totalNumberOfChunks = 0 ;
1657+ bufferedWriter : Bindings . TempFile . TempFile | null = null ;
1658+ onTempFileReady : ( ( ) => void ) | null = null ;
16611659 failedToCreateTempFile ?: boolean ;
16621660 wasDisposed ?: boolean ;
16631661 fileName ?: Platform . DevToolsPath . RawPathString ;
16641662
16651663 constructor (
1666- heapProfilerModel : SDK . HeapProfilerModel . HeapProfilerModel | null , type : HeapSnapshotProfileType , title ?: string ) {
1664+ heapProfilerModel : SDK . HeapProfilerModel . HeapProfilerModel | null ,
1665+ type : HeapSnapshotProfileType ,
1666+ title ?: string ,
1667+ ) {
16671668 super ( type , title || i18nString ( UIStrings . snapshotD , { PH1 : type . nextProfileUid ( ) } ) ) ;
16681669 this . heapProfilerModelInternal = heapProfilerModel ;
1669- this . maxJSObjectId = - 1 ;
1670- this . workerProxy = null ;
1671- this . receiver = null ;
1672- this . snapshotProxy = null ;
16731670 const { promise, resolve} = Promise . withResolvers < HeapSnapshotProxy > ( ) ;
16741671 this . loadPromise = promise ;
16751672 this . fulfillLoad = resolve ;
1676- this . totalNumberOfChunks = 0 ;
1677- this . bufferedWriter = null ;
1678- this . onTempFileReady = null ;
16791673 }
16801674
16811675 heapProfilerModel ( ) : SDK . HeapProfilerModel . HeapProfilerModel | null {
0 commit comments