This illustrates the different reasons for the debugger being unable to access the value of a variable (in the context of goo.gle/devtools-value-unavailable).
debugger
statement in tdz()
.x
and y
as <value unavailable>
, since execution stopped in the TDZ for these variables.debugger
statement in optimizedOut()
.y
as <value unavailable>
, since TurboFan doesn't need to keep the value of y
alive beyond the debugger
statement.debugger
statement in inner()
.y
as <value unavailable>
, since it's closed over but not needed for inner
.