Open olebedev opened 5 months ago
Thanks for the bug report @olebedev - we're looking into this
In the meantime before it's fixed, if you need this behaviour, you can accomplish it through pm.eval
For example:
import pythonmonkey as pm
def js_static_class_prop(js_class, prop):
return pm.eval('(c,p) => c[p]')(js_class, prop)
Term = pm.require("./term.js")
print(js_static_class_prop(Term, "fromString")) # <pythonmonkey.JSFunctionProxy object at 0x7fa038909570>
Describe your feature request here.
Currently, when you define JS like this:
The static method is not available for that class:
Will give
Code example
No response