Closed
Bug 717622
Opened 13 years ago
Closed 13 years ago
GCLI: typing in a for loop causes an exception
Categories
(DevTools :: Console, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 12
People
(Reporter: jorendorff, Assigned: jwalker)
References
Details
Steps to reproduce: Paste this into the new Web Console:
{ for (var x=0; x<9; x++) x;
Then hit enter.
Expected: I think the console output should be 8. That's what eval() would return for this snippet of code.
Observed: The console reports an XPCOM error, "invalid or illegal string was specified".
Assignee | ||
Updated•13 years ago
|
Summary: Console: typing in a for loop causes an exception → GCLI: typing in a for loop causes an exception
Assignee | ||
Updated•13 years ago
|
Comment 1•13 years ago
|
||
Doing the same in Scratchpad and run the code does not echo anything - no exception - no result
The code
{ for (var x=0; x<9; x++) alert(x);
echoes "x" value in the alert box, then throws the exception
Assignee | ||
Comment 2•13 years ago
|
||
Triage. Filter on PEGASUS.
Will be fixed in bug 693269
Priority: -- → P2
Comment 3•13 years ago
|
||
(In reply to Maniac Vlad Florin (:vladmaniac) from comment #1)
> Doing the same in Scratchpad and run the code does not echo anything - no
> exception - no result
>
> The code
> { for (var x=0; x<9; x++) alert(x);
> echoes "x" value in the alert box, then throws the exception
Please file a separate bug if there's an issue in Scratchpad. That isn't really useful to this bug.
Assignee | ||
Comment 4•13 years ago
|
||
Fixed in Bug 693269.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 12
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•