This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nested optimized function with residual functions (#2397)
Summary: Release notes: none This fixes a bug with nested optimized functions referencing nested residual functions and makes our internal bundle compile. The issue was that we weren't checking if the function we get from `tryGetOptimizedFunctionRoot` was defined inside another optimized function, like we do already 5-6 lines up in the other if statement. This is an important thing, as the next line will result in `undefined` being returned. When `undefined` is returned, we use the `MainGenerator` rather than the `OptimizedFunction` generator, which means all declared values look at the wrong body. Pull Request resolved: #2397 Differential Revision: D9223735 Pulled By: trueadm fbshipit-source-id: 8e1cb1cc1b201b1ae1a804bc61a4bdc8790a3eea
- Loading branch information