You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
Our interpreters eagerly evaluate closures which has the unfortunate consequence of not allowing closures such as those in a StepFunction or Function to call an Integration defined after it.
newFunction(scope,id,async()=>{// error: queue is not definedawaitqueue.sendMessage({..});});constqueue=newQueue(scope,id);
Instead, evaluation should happen during synthesis and after the initial Construct tree is built.
Keywords
late-bound, hoisted, forward reference
Description
Our interpreters eagerly evaluate closures which has the unfortunate consequence of not allowing closures such as those in a StepFunction or Function to call an Integration defined after it.
Instead, evaluation should happen during synthesis and after the initial Construct tree is built.