Expression executed within Firebug command line (e.g. available on the Console panel) are evaluated within the current page (using eval() API). So, it uses Firefox's default JavaScript version.
Follow this issue to get more info: http://code.google.com/p/fbug/issues/detail?id=3358 The summary is that eval() doesn't allow to specify JS version, this problem is reported here and I hope will be fixed in JSD2 https://bugzilla.mozilla.org/show_bug.cgi?id=591961 Honza On Jul 17, 1:23 pm, Stefan Fruehwirth <[email protected]> wrote: > In Firebug 1.7.3 I can't use features of Javascript 1.7 like > generators. I found this > posts:http://groups.google.com/group/firebug/browse_thread/thread/bb346574b... > andhttp://groups.google.com/group/firebug/browse_thread/thread/036e57d49... > where the same question has been asked, but nobody seems to be able to > answer to it. It is just a simple question: is Javascript 1.7+ > supported or not - yes or no? And if yes, how do I tell the console to > use a specific version. > > For example this code throws a "SyntaxError: missing ; before > statement": > > function a(){yield "doh!";}; > > Thanks, > Stefan -- 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 http://groups.google.com/group/firebug?hl=en.
