ReferenceError: repl is not defined
I got this error after working a while with mozrepl.el in Emacs. From the beginning things worked fine.
I mostly send the buffer contents through something like
content.document.body.innerHTML= ... json ...
I have several Firefox windows open and several tabs in them. And I closed the tabs where the contents from mozrepl where displayed, but normally that is OK.
I am using MozRepl 1.0.0.2009122217. (What is the best way to update it?)
Latest Firefox (i.e . 3.65.3).
Here is an example of the output (below this is the first error):
repl> repl.whereAmI() !!! ReferenceError: repl is not defined
Details:
message: repl is not defined fileName: chrome://mozrepl/content/repl.js -> file:///C:/Documents%20and%20Settings/Lennart%20Borgman/Application%20Data/Mozilla/Firefox/Profiles/v6cvxnzr.default/mozrepl.tmp.js lineNumber: 1 stack: @chrome://mozrepl/content/repl.js -> file:///C:/Documents%20and%20Settings/MyAccount/Application%20Data/Mozilla/Firefox/Profiles/v6cvxnzr.default/mozrepl.tmp.js:1 name: ReferenceError
repl>
The first error seems to be this:
!!! [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.content]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://mozrepl/content/repl.js -> file:///C:/Documents%20and%20Settings/Lennart%20Borgman/Application%20Data/Mozilla/Firefox/Profiles/v6cvxnzr.default/mozrepl.tmp.js :: <TOP_LEVEL> :: line 1" data: no]
Details:
name: NS_ERROR_FAILURE QueryInterface: function QueryInterface() { [native code] } message: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.content] result: 2147500037 filename: chrome://mozrepl/content/repl.js -> file:///C:/Documents%20and%20Settings/Lennart%20Borgman/Application%20Data/Mozilla/Firefox/Profiles/v6cvxnzr.default/mozrepl.tmp.js lineNumber: 1 columnNumber: 0 location: JS frame :: chrome://mozrepl/content/repl.js -> file:///C:/Documents%20and%20Settings/Lennart%20Borgman/Application%20Data/Mozilla/Firefox/Profiles/v6cvxnzr.default/mozrepl.tmp.js :: <TOP_LEVEL> :: line 1 inner: null data: null initialize: function initialize() { [native code] }