Bug? script context doesn't revert if changed during eval

Dima Golubets dgolubets at gmail.com
Sun May 10 15:46:11 UTC 2015


Hi!

I call engine.eval, which calls some Java code which in turn calls eval
again, but with another script context. However this new script context
gets up the call stack somehow and the rest of the javascript code
continues to execute with variables defined in that another context.

Is it a bug, or eval inside eval is not supported?


More information about the nashorn-dev mailing list