-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript interop: method calls not working? #312
Comments
@cassiel For some reason the object is converted into a CLJS object. But this works:
I'll take a look. |
Fixed in
|
Fantastically fast response: thank you! (This is for interop with Cycling '74 MaxMSP for audiovisuals.) Happy to test now or wait for the NPM update. |
@cassiel The NPM library is already updated. |
npm search still claiming alpha 13 - will fetch again. Oh, never mind, that's the version, not the alpha level. |
version
0.0.13-alpha.16
platform
macOS, using from Node.js.
problem
Cannot do method calls on JS objects passed in via bindings.
repro
This works (function callback):
evalString("(f)", {bindings: {f: () => console.log("HELLO")}})
This fails:
evalString("(.f foo)", {bindings: {foo: {f: () => console.log("HELLO")}}})
with: Mn [Error]: Method f on function k(a,b,c,d){this.u=a;this.A=b;this.l=c;this.C=d;this.o=16647951;this.F=139268} not allowed!
expected behavior
From the above: "HELLO".
The text was updated successfully, but these errors were encountered: