JavaScript 1.7 in Firebug console?

17 views
Skip to first unread message

Giulio Piancastelli

unread,
Feb 13, 2007, 8:42:40 AM2/13/07
to Firebug
Hi all,

I was wondering how I could exploit the new features of JavaScript 1.7
from within the Firebug console. I managed to run some list
comprehension commands, but other things get not recognized. For
example, when I try the following in the Large Command Line area:

function range(begin, end) {
for (let i = begin; i < end; ++i) {
yield i;
}
}

I get an error about delimiters in the for loop, but I really believe
that things such as let and yield are not recognized by the JavaScript
engine.

I know that, to enable JavaScript 1.7, <script> elements must be
properly configured. Is a similar configuration available for the
Firebug console? Or it is only defaulted to Firefox's default
JavaScript version? (1.6, I believe.) And if so, why list
comprehension works?

Thank you very much.

Cheers,
Giulio

Reply all
Reply to author
Forward
0 new messages