While testing JavaScript code in Firefox 3.5 I sometimes get the following error:
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) <
Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)
I had this error too using Coffeescript when my Callback functions were defined after my main function. I just had to re order my functions to make it work. Hope it helps.