Closed Bug 266269 Opened 20 years ago Closed 19 years ago

Javascript strict not reporting strict errors.

Categories

(Toolkit Graveyard :: Error Console, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: mats.ahlberg, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20041019 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20041019 Firefox/1.0

The following javascript results in error in mozilla but not in firefox.

if (0394!=0394){

Mozilla report as follows

Warning: 09 is not a legal ECMA-262 octal constant
Source File: file:///c:/test.html
Line: 10, Column: 10
Source Code:
if (0394!=0394){

Reproducible: Always
Steps to Reproduce:
1. Run the script.
2.
3.

Actual Results:  
Nothing

Expected Results:  
Error should be reported.
Have you enabled javascript.options.strict within about:config?
Yes i have strict enabled.

I will do a complete reinstall and delete the profile and test again just to be
sure there are no corrupt files.
WFM when entering it in Javascript Console. I have both
javascript.options.strict and javascript.options.showInConsole in about:config
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Warning: 09 is not a legal ECMA-262 octal constant
Source File: javascript: if (0394!=0394);
Line: 1, Column: 5
Source Code:
 if (0394!=0394);

Warning: 09 is not a legal ECMA-262 octal constant
Source File: javascript: if (0394!=0394);
Line: 1, Column: 11
Source Code:
 if (0394!=0394);
resolving wfm
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
I can verify that it works now!
v.
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.