Fix IE 200108231: `with` + anonymous function capture

Fixes #40600

The with statement stored its reference in an internal temp node invisible to the capture mechanism. Replace with a proper variable (localvarsym/staticvarsym) so anonymous functions can capture it naturally.

Merge request reports

Loading