Strict JavaScript warnings
Mozilla Firefox is a great tool for a web developer. It has loads of stuff that just makes your day so much easier.
One of the really cool features of Mozilla Firefox is the ability to show strict JavaScript warnings. The warnings comes from the heart of the JavaScript engine inside Mozilla Firefox and tells the user about mistakes in JavaScript in the webpage you just loaded. These warnings does not stop the execution of the JavaScript on the webpage but they slow it down a bit since exceptions are made in the JavaScript engine.
An example of such an warning:
Warning: redeclaration of var PairCB
Source File: http://by21fd.bay21.hotmail.msn.com/cgi-bin/dasp/EN/hotmail___100000432.js
Line: 756, Column: 4
Source Code:
var PairCB="im"+CB.name;
Extensions Developers
April 07, 2005 10:15 PM | Posted in Mozilla
![]() |
![]() |


I agree - strict javascript warnings can be very helpfull. You didn't tell how to configure Firefox so it shows strict warnings. It can be done as follows:
a) about:config
b) find javascript.options.strict (i.e. by filtering on "strict")
c) doubleclick to toggle between true and false
The warnings are displayed in the javascript console.
Comment by Jens Gyldenkærne Clausen at April 8, 2005 03:51 PM | Permalink