-
Notifications
You must be signed in to change notification settings - Fork 190
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
graal.js compatibility problem #397
Comments
I've tried to enable js.nashorn-compat=true , and the issues I mentioned above is gone. But I have another parameter which type is com.alibaba.fastjson.JSONObject. graal.js can't read it's property |
Hi @lordk911 thanks for your question.
Another option is to wrap your Map into a ProxyObject. Then you can limit the changes to the JavaSide and need not change the JavaScript code. For a flat array, use Best, |
Thank you. I understand. |
Thanks for you answer. I just ran into this same situation. I tried your suggestion of using
Are there plans to implement JS property type access on |
Hi @Phillipus yes this is planned, see e.g. #143 This is quite complicated as we have to implement it in the Truffle framework, so make it compatible with all programming languages we support (not just JavaScript). The Truffle team is working on it, but I don't think there is an ETA for that currently. Best, |
@wirthi Thanks for the info, I appreciate it. No hurry, as |
I have some code originally run on nashorn , when change to graal.js , the code not work.
My code will pass a java object as parameter to a js function.
The java object struct is :
and the js function will use the object ,read out the data :
when use graal.js as ScriptEngine , an ERROR will throw out and tell me the aggData's data property is undefine when code run to :
aggData.data.length
The text was updated successfully, but these errors were encountered: