It is weird, I do not know how to describe my problem. Basically I have the
following code:
Tablero.prototype.getValor = function() {
if (!this.hayFichas()) {
console.trace();
throw "The deck is empty. It is illegal to call getValor()";
}
... more code ...
}
The program works without trouble. But I keep seeing in Firebug's Console
the exception. (The deck is empty...)
If I use Firefox's built-in Developer Tools, or Chrome, there is never a
exception. It only appears on Firebug Console.
I added a breakpoint over the exception and it never stops. It is like
never going that path. But still the exception appears.
That code fragment is part of a more complex code, that uses Knockoutjs,
jQuery, SignalR, and I don't know what more.
What I think is that Firefox have some kind of prediction algorithm that
execute that branch before time, and if it ever goes there it is already
processed. But as it never goes that branch... it is a exception that is
never thrown. Even worse.. the console.trace() is never shown on console !
As it was never executed.
Am I right? Is it possible? Am I missing something?
I am using Firefox 22.0 with Firebug 1.11.4
It have no consequences on my application, but it is very annoying to
always see a exception that for all effects... do not exists.
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebug/89eedc37-aa32-4543-8214-671e68986247%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.