Hello everyone,
I am curious to know if anyone can help explain what is going on here?
In the following snippet, if I set a breakpoint inside the catch block
and then try to Evaluate the value of "e" in either the watches window
or the eval window (using the debugger that ships with Rhino), I get a
'ReferenceError: "e" is not defined' error. Does anyone know why this
is? I would have expected e to be dynamically added to foo() the
minute the exception handling block was reached. Thanks in advance.
function foo()
{
try
{
throw '123'
}
catch ( e )
{
var errorObj = e;
}
}
foo()
Yang
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino