al_9x wrote:
What do you think is going on?
Nothing special. Function definition <> property creation. It's just because of a side effect of global scope definition that a function declared in the window scope appears also as a property of the window. But if you invoke it by name, you're not accessing any property (and therefore you're not calling any accessor).
Another "trap" of this kind is the Function constructor: contrarily to what you may expect, it doesn't get called when you define a function the "usual" way:
but only when you use it directly for dynamic function definition:
Giorgio Maone wrote:I'm gonna add a "noscript.surrogate.debug" preference in next build, which will enable console logging for all the surrogate uncaught exceptions.
Giorgio Maone wrote:Since you are making it a pref and default to off I presume, is there a down side to it?
Yes, performance. Logging errors for surrogates requires them to be processed (compiled and executed) one by one, while the current non-logging implementation collapse all the surrogates which apply to a certain page in one single script block.
BTW, change available in
latest development build.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6