[Feature]: Call js functions directly through macro:// uris
Feature Request
Currently when I want to execute a javascript function in a GraalVM context from e.g. a macroLink, I have to wrap this function in a MTScript macro, and call that. It isn't a huge deal, but it is annoying that I have to add a wrapper macro for every js function I want to call from a macroLink.
I suppose the same goes for an UDF as well ;)
The Solution you'd like
I would like to be able to call a function directly through the macroLink syntax (for lack of a better word), in the same way I call a macro.
I would like to be able to do something like this:
macro://js.functionName@lib:namespace/impersonated/?...
Alternatives that you've considered.
No response
Additional Context
I am currently working on an add-on library where as much code as possible is javascript. So far I have managed to limit my MTScript to three macros, onFirstInit, onInit and a generic evaluateMacro that can be called via fetch.
But I miss the possibility of calling a function direcly, like I can with macros.