-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Function cannot be used outside of evalString #259
Comments
The function can be retrieved by accessing fields of the returned value. E.g.
I'm wondering if this is because of the metadata that is added: https://github.com/borkdude/sci/blob/c2ffce590f8185b9fd5fdbb7e3746ba37f2ae02f/src/sci/impl/fns.cljc#L84 For all none macro fn's this is not needed I think |
const { evalString, toJS } = require('@borkdude/sci'); and then call |
I'll check if non-macro functions work correctly without metadata and then publish a new release. |
Fixed in npm version 0.0.13-alpha.5 |
version
"@borkdude/sci": "0.0.12",
platform
Javascript, NodeJS,
problem
Functions created in
evalString
cannot be used in the javascript contextrepro
Gives
expected behavior
evalString should return a function that can be used from the javascript context. Like in the CLJ version:
Code above returns 14
The text was updated successfully, but these errors were encountered: