Re: How to properly implement JSObject to provide conversion of Gson JsonElement objects?

2017-06-01 Thread Jesse Schulman
Ironically, I'm hitting a similar issue with a library doing an Object.keys() call against a custom JSObject, can you share the solution you've taken? Also, I'm guessing this is the RFE you created: https://bugs.openjdk.java.net/browse/JDK-8181203?jql=text%20~%20%22Object.keys%20nashorn%22 Thanks

Re: How to properly implement JSObject to provide conversion of Gson JsonElement objects?

2017-06-01 Thread Daniel Einspanjer
Yes, that is the bug. My work around isn't great, I just had to avoid using any form of custom JSObject. Instead, I do an eval('new Object()') to get a holder and put my object and functions inside it via put(). -Daniel On Thu, Jun 1, 2017, 6:30 PM Jesse Schulman wrote: > Ironically, I'm hitti