Any tips on this?

If I can't find a way to create new error classes I might have to give up on simply embedding rhino and mangle my code and rhino's code into one project.

Daniel Friesen wrote:
I can't seam to find a way to create new Error classes in Rhino (JavaScript errors, like TypeError that inherit from Error).

I've been hunting through the source code and can't find any method of creating error classes. And the code that NativeGlobal uses to create errors can't be used elsewhere and even a hack can't access the information needed to make it create those errors.


--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to