To answer my own question it looks like this is in the FF8 code base.

Although not listed on 
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects
there is a 
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Generator
page.

Searching the FF8 codebase it looks like js\src\jsapi.cpp has a list
of global of which Generator is in, assuming JS_HAS_GENERATORS is
defined.

/*
 * Table of class initializers and their atom offsets in rt-
>atomState.
 * If you add a "standard" class, remember to update this table.
 */
static JSStdName standard_class_atoms[]
...
 js\src\jsapi.cpp(1650):    {js_InitIteratorClasses,
EAGER_ATOM_AND_CLASP(Generator)},

I still seems odd it undefined and then defined when I step.

On Dec 14, 10:09 am, Michael Braithwaite
<[email protected]> wrote:
> For me it happens on any site I tested with FF8 and trivially in the below.
> It doesn't seem to happen on FF3.6,  Auroa or Chrome so maybe FF8 behaviour
> rather than Firebug.
>
> <html>
> <head>
> <title>Test</title>
> </head>
> <body>
> <script>
>  var a = 1; // put a breakpoint here and add a watch for Generator which
> is undefined. Then step with F10 and Generator is then an object
> var b = 2;
> </script>
> </body>
> </html>
>
> On 14 December 2011 05:40, Sebo <[email protected]> wrote:
>
> > Do you use Step Into or Step Over? Do you define Generator as an empty
> > object somewhere in your code? Might it be possible to get a little test
> > case?
>
> > Sebastian
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Firebug" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >https://groups.google.com/forum/#!forum/firebug
>
> --
> Michael Braithwaite
> Senior Software Engineer - Turbulenz Limited

-- 
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Reply via email to