Runtime library should be better designed to hide some of the implementation details.
One example would be a interceptFunctionCall function that should be available only to the compiled code
Another improvement would be naming of the function - we are not intercepting things but rather firing a callback
I've opted in not to hide interceptFunctionCall since it's a minor utility that would require a bit of work to be extracted into a separate artifact and included as a runtime-only dependency.
Runtime library should be better designed to hide some of the implementation details. One example would be a
interceptFunctionCall
function that should be available only to the compiled codeAnother improvement would be naming of the function - we are not intercepting things but rather firing a callback