igor%mir2.org a78fee9997 Changing Context.newObject to use ScriptRuntime.getExistingCtor to get constructor Function instance. In this way Context.newObject will throw the same set of exceptions that other parts of Rhino will throw on bad access to constructor.
With this change NotAFunctionException is no longer used so it is deprecated and changed to extend from Error not Exception for source compatibility: otherwise compiler will complain about unreachable catch handler.


git-svn-id: svn://10.0.0.236/trunk@146672 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-10 12:44:23 +00:00
..