@@ -3614,18 +3614,24 @@ function outlineComponentInfo(
3614
3614
'debugTask' | 'debugStack' ,
3615
3615
> = {
3616
3616
name : componentInfo . name ,
3617
- env : componentInfo . env ,
3618
3617
key : componentInfo . key ,
3619
- owner : componentInfo . owner ,
3620
3618
} ;
3619
+ if ( componentInfo . env != null ) {
3620
+ // $FlowFixMe[cannot-write]
3621
+ componentDebugInfo . env = componentInfo . env ;
3622
+ }
3623
+ if ( componentInfo . owner != null ) {
3624
+ // $FlowFixMe[cannot-write]
3625
+ componentDebugInfo . owner = componentInfo . owner ;
3626
+ }
3621
3627
if ( componentInfo . stack == null && componentInfo . debugStack != null ) {
3622
3628
// If we have a debugStack but no parsed stack we should parse it.
3623
3629
// $FlowFixMe[cannot-write]
3624
3630
componentDebugInfo . stack = filterStackTrace (
3625
3631
request ,
3626
3632
parseStackTrace ( componentInfo . debugStack , 1 ) ,
3627
3633
) ;
3628
- } else {
3634
+ } else if ( componentInfo . stack != null ) {
3629
3635
// $FlowFixMe[cannot-write]
3630
3636
componentDebugInfo . stack = componentInfo . stack ;
3631
3637
}
@@ -4337,10 +4343,19 @@ function forwardDebugInfo(
4337
4343
'debugTask' | 'debugStack' ,
4338
4344
> = {
4339
4345
awaited : ioInfo ,
4340
- env : info . env ,
4341
- owner : info . owner ,
4342
- stack : debugStack ,
4343
4346
} ;
4347
+ if ( info . env ! = null ) {
4348
+ // $FlowFixMe[cannot-write]
4349
+ debugAsyncInfo . env = info . env ;
4350
+ }
4351
+ if ( info . owner != null ) {
4352
+ // $FlowFixMe[cannot-write]
4353
+ debugAsyncInfo . owner = info . owner ;
4354
+ }
4355
+ if ( debugStack != null ) {
4356
+ // $FlowFixMe[cannot-write]
4357
+ debugAsyncInfo . stack = debugStack ;
4358
+ }
4344
4359
emitDebugChunk ( request , id , debugAsyncInfo ) ;
4345
4360
}
4346
4361
} else {
0 commit comments