Closed
Bug 88527
Opened 24 years ago
Closed 23 years ago
javascript strict warnings in irc.js
Categories
(Other Applications :: ChatZilla, defect)
Other Applications
ChatZilla
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 103598
People
(Reporter: bugzilla, Assigned: rginda)
Details
to reproduce:
- just open and close the chatzilla
Warning: redeclaration of var ev
Source File: chrome://chatzilla/content/lib/js/irc.js
Line: 331, Column: 8
Source Code:
var ev = new CEvent ("network", "info", this.parent, "onInfo");
Warning: reference to undefined property this.primServ
Source File: chrome://chatzilla/content/lib/js/irc.js
Line: 235
Warning: redeclaration of var ev
Source File: chrome://chatzilla/content/lib/js/irc.js
Line: 1194, Column: 12
Source Code:
var ev = new CEvent ("network", "nick", this.parent, "onNick");
Please add the following line to your prefs.js file, so we could avoid all the
strict warning fixup...:
user_pref("javascript.options.strict", true);
Comment 1•24 years ago
|
||
Geez man, you could have opened only 1 bug with the summary "javascript strict
warnings when closing chatzilla"
I'm going to do it for you, feel free to flame me for doing so. It takes the
same steps to reproduce the same, just that they are different files
Changing summary
Should this go into javascript?
Summary: javascript strict warnings in irc.js → javascript strict warnings when closing chatzilla
Reporter | ||
Updated•24 years ago
|
Summary: javascript strict warnings when closing chatzilla → javascript strict warnings in irc.js
Comment 5•24 years ago
|
||
What about the workaround method of putting that option in the pref file?
Are you getting any loss of a function in chatzilla because of those errors?
Reporter | ||
Comment 6•24 years ago
|
||
it's not a js error just js warning telling the developer that something is
potentially wrong. All js and xul files should work without any warnings.
Assignee | ||
Comment 7•24 years ago
|
||
Says who? I for one think that strict mode is too strict, and many of these
warnings are for things I'm not going to change.
Reporter | ||
Comment 8•24 years ago
|
||
then I think you're the only one with that attitude. All other @netscape.com
people I've heard says that we should get rid of all js strict warnings...
Assignee | ||
Comment 10•24 years ago
|
||
I'd have to see the patches.
I'm not willing to change all of my if (typeof foo == "undefined") tests for
these warnings, so don't bother changing those. Valid "declared as var twice",
and "foo used but not declared" type warnings are OK to fix tho.
Reporter | ||
Comment 11•24 years ago
|
||
If you dont think all warnings should be fixed please talk to jst@netscape.com.
Either warnings should be fixed or the strict option should be less strict. I
dont care I just want my Mozilla without strict warnings!
Assignee | ||
Comment 12•23 years ago
|
||
*** This bug has been marked as a duplicate of 103598 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Core → Other Applications
You need to log in
before you can comment on or make changes to this bug.
Description
•