Closed
Bug 702928
Opened 15 years ago
Closed 15 years ago
console log with non-string multiple arguments throws an exception
Categories
(DevTools :: General, defect)
Tracking
(firefox9-)
RESOLVED
DUPLICATE
of bug 696288
Firefox 9
| Tracking | Status | |
|---|---|---|
| firefox9 | - | --- |
People
(Reporter: Gijs, Unassigned)
References
(
URL
)
Details
(Keywords: regression)
STR:
1. Open the URL from the URL field. It's a simple html page with a <script> that does:
console.log(5, 'stuff');
alert('hi');
Expected results:
1. console shows "5 stuff"
2. alert fires
Actual results:
1. console shows an exception: --
[12:44:02.472] uncaught exception: TypeError: format.replace is not a function
2. alert doesn't fire.
This should be pretty trivial to fix - I don't have time to look into it Right Now, but I may have time tonight or tomorrow morning to try to whip up a patch, if nobody beats me to it.
Note that in general, IMHO the console.* APIs should be isolated from exceptions in the implementation. That is to say, it's OK for the exception to show up in the console, it's not OK for the page's JS execution to stop.
This is a regression (used to work in Firefox 8), but I'm not sure when exactly it regressed, although that shouldn't be too hard to figure out, either. Requesting tracking-fx9 because this breaks a pretty ubiquitous web dev feature that used to work fine, and it seems it should be possible to fix this in time for the Fx9 release still...
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Updated•14 years ago
|
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•