Any way to support expando props on Java objects?
Mike Hearn
mike at plan99.net
Mon Mar 19 14:20:45 UTC 2018
Hello,
Thanks for writing Nashorn, it's useful!
I'm trying to run https://github.com/domchristie/turndown in Nashorn, using
JSoup to provide a simple DOM, but have hit an issue because Turndown
expects to be able to add its own properties to DOM objects. This is
something browsers support but Nashorn doesn't. I do realise that Nashorn's
approach is allowed by the specs, but I'm wondering if there's any way to
hack things up such that the library can do what it wants. I can also just
change the code, but I'm curious if there's a quick fix here.
More information about the nashorn-dev
mailing list