Closed Bug 88527 Opened 24 years ago Closed 23 years ago

javascript strict warnings in irc.js

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
normal

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);
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
*** Bug 88528 has been marked as a duplicate of this bug. ***
*** Bug 88529 has been marked as a duplicate of this bug. ***
*** Bug 88530 has been marked as a duplicate of this bug. ***
Summary: javascript strict warnings when closing chatzilla → javascript strict warnings in irc.js
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?
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.
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.
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...
Robert, even if I provide patches you wouldn't allow it?
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.
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!
*** This bug has been marked as a duplicate of 103598 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified dupe
Status: RESOLVED → VERIFIED
Product: Core → Other Applications
You need to log in before you can comment on or make changes to this bug.