[actions] Deal with whether actions are allowed at compliation time, not evaluation time #1031
Labels
Effort: medium
Priority: low
Refactor
Code improvements
Status: 4. Ready to implement
We know how to implement this, but who will do it?
Topic: Actions
Currently we check if we're in an Actions context every single time an identifier is resolved: https://github.com/mavoweb/mavo/blob/main/src/mavoscript.js#L9
And use this awkward hack for that:
mavo/src/mavoscript.js
Line 890 in 7143d5f
But why? All we need to do is pass to the compiler that we're in an actions context and compile the function differently in that case.
The text was updated successfully, but these errors were encountered: