I have a function that extends BaseFunction and overrides the call() method.

When scripts call this function, I want the script execution to stop.

Is this possible? Should I create a StopScriptError and throw it, or
will the scripts be able to catch it? Or can I call exit() on the
provided Context to halt the execution?


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to