Closed
Bug 214611
Opened 22 years ago
Closed 22 years ago
Same strict warning displayed 12 times
Categories
(Core Graveyard :: Error Console, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 104549
People
(Reporter: zack-weg, Assigned: hewitt)
Details
Attachments
(1 file)
197 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030730
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030730
The same strict warning is displayed 12 times.
Reproducible: Always
Steps to Reproduce:
1. Enable JavaScript strict warnings.
2. Open JavaScript Console.
3. Load testcase.
Actual Results:
Same warning appears 12 times.
Every time you click the "test" button you will get another 12 warnings.
Expected Results:
Only 1 warning per reference to an undefined property.
Note: If you uncomment the absolutely useless declaration |var x;|, you get only
one warning related to the undefined property, but 12 warnings for reference to
undefined QueryInterface. However, if you add more references to undefined
properties, you get another 12 warnings, which are related to QueryInterface
iff a global variable is declared.
Behavior in 1.4 is the same, but there are no warnings related to
QueryInterface. In 1.3 there was no such bug, IIRC.
This bug makes strict mode quite unusable because it slows Mozilla down and
finding important warnings becomes very difficult, especially if you're inside
a loop.
Comment 2•22 years ago
|
||
I have Mozilla 1.4 (Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.4)
Gecko/20030624) and I can confirm this. But I see the warning message 13x.
I can confirm this for almost every strict waning message I have seen in the
JS-console. Strict mode is less usefull know.
For comparison you can look at http://www.czilla.cz/ <- there should be 2 strict
warning messages about document.all but every is here 13x
![]() |
||
Comment 3•22 years ago
|
||
*** This bug has been marked as a duplicate of 104549 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Yes, it's a dupe. I didn't find the other bug because of the wrong component.
Status: RESOLVED → VERIFIED
Updated•17 years ago
|
Product: Core → SeaMonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•