OpenFn / kit

The bits & pieces that make OpenFn work. (diagrammer, cli, compiler, runtime, runtime manager, logger, etc.)
8 stars 12 forks source link

Fix lazy state stuff #661

Closed josephjclark closed 2 months ago

josephjclark commented 2 months ago

This PR makes lazy state a bit more strict.

It explicitly ensures that a $ operator is being passed as an argument into a function.

If it has a statement or declaration as a parent before the call expression, an error will be thrown (not a great one tbh but there we go).

This is kind of a quick fix, I may relax the constraint if I think #660 is robust enough