openos /bin/components.lua expects __tostring, via tostring(proxy[method]), to invoke component.doc which is only set as a metamethod redirection for methods, not for fields (i.e. getter/setters)
The fix would be to call the component.doc api directly, and not rely on __tostring
openos /bin/components.lua expects
__tostring
, viatostring(proxy[method])
, to invokecomponent.doc
which is only set as a metamethod redirection for methods, not for fields (i.e. getter/setters)The fix would be to call the
component.doc
api directly, and not rely on__tostring