(Using Rhino 1.7 R1)

The javadoc on the Context.seal() method states that when context is
sealed calling enter() and exit() methods will throw an exception.
This does not appear to be correct, I've looked at the code and tested
and the enter() and exit() methods don't seem to check if the context
is sealed.

So my question is; which is correct, the docs or the code?

IMHO, I like the current behavior where you can seal the context and
enter() and exit() still work.
However, I don't want to rely on this behavior if it's wrong and going
to change to match the docs in a future release.

And, of course if the docs are wrong they should be fixed.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to