@simon.vergauwen I think the method reference issues is because the ScriptEngine does not create actual package level functions. All the code is placed inside an object/namespace. so
::test
is not actually defined anywhere. It'd be something like
LineX::test
.