Javascript strict not reporting strict errors.

VERIFIED WORKSFORME

Status

Toolkit Graveyard
Error Console
VERIFIED WORKSFORME
14 years ago
2 years ago

People

(Reporter: Mats Åhlberg, Assigned: Ben Goodger (use ben at mozilla dot org for email))

Tracking

Details

(Reporter)

Description

14 years ago
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?
(Reporter)

Comment 2

14 years ago
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.

Comment 3

14 years ago
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);

Comment 4

14 years ago
resolving wfm
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
(Reporter)

Comment 5

14 years ago
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.