The current code pretends that the LexicalEnvironment local var is captured. This is a short cut to keeping that local var alive (even when it doesn't need to be). However, this pretense does have negative side-effects (see https://bugs.webkit.org/show_bug.cgi?id=139524). So, let's fix it.
Created attachment 243988 [details]
This patch is just to track the work being done. It is not ready for landing because applying this patch will expose other issues manifesting as esc-stress-test failures. Bugs tracking those issues will be documented shortly.
(In reply to comment #2)
> ... esc-stress-test failures. ...
The offending code was deleted when CodeBlock::isCaptured() was deleted as part of the fix to https://bugs.webkit.org/show_bug.cgi?id=141174. So, I'll resolve this as a dup to 141174.
*** This bug has been marked as a duplicate of bug 141174 ***