Subj : undefined is not a function To : netscape.public.mozilla.jseng From : okidoky@usa.net (Mike) Date : Tue Dec 30 2003 05:05 pm Is it possible to fix Rhino up so that the name of the function that was intended to be called instead of 'undefined'? test.js: object = {}; object.something(); $> java -jar js.jar test.js TypeError: undefined is not a function. I've got quite a bunch of Javascript for business logic, and 'undefined' is costing me a lot of time finding the errors. $> java -jar js.jar -opt -1 test.js TypeError: something is not a function. Much better. I can search my js source code for 'something' and fix the bug in notime. My guess is that the non -1 opt level's generated bytecodes has a bug where it doesn't or can't report the name of the function that was intended to be called. .