Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Christopher Blappert edited this page Jul 25, 2018 · 1 revision

PP1009

__optimize was called on the same function nested inside of multiple nested optimized functions contexts, but evaluating the call in the different contexts produced different results. In this case, it is unclear to Prepack what needs to be emitted. Usually this will be accompanied by other Prepack errors.

The solution to this would be to modify the function you are __optimizeing to not depend on the pieces of the environment that vary between the different parent optimized functions.