[Webkit-unassigned] [Bug 34689] New: Loading javascript files
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Feb 6 23:44:42 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34689
Summary: Loading javascript files
Product: WebKit
Version: 420+
Platform: PC
URL: http://www.lulabytes.com
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Page Loading
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: brattchess at yahoo.com
Chrome launch error "uncaught syntax error" when in others browsers never
happen.
Looking the download code, you can see that a part of the code in the bottom
another time.
It's correct the error, but it's not correct the way that Chrome mount or
download the javascript file.
In my web page I have some javascript files, but it happens in some of them.
Example:
function _fiTs(aa, ab){var ac="";var ad=""+aa;if(ad.length < ab){var
i=0;for(i=0;i <(ab-ad.length
);i++){ac=ac.concat("0");}ac=ac.concat(ad);}else{ac=ad;}i=null;ad=null;return
ac;}
function _sT(aa, ab){var
ac=document.getElementById(aa);ac.innerHTML=ab;ac=null;}
function _gF(ac){
var aa=new Date();var
d,m,y;d=aa.getDate();m=aa.getMonth()+1;y=aa.getFullYear();
var ab='';var i=0;
for(i=0;i <
ac.length;i++){switch(ac.charAt(i)){case'y':if(((i+1)<ac.length)&&(ac.charAt(i+1)=='+')){y=y+1;}if(((i+1)<
ac.length)&& (ac.charAt(i+1)=='-')){y=y-1;}
ab=ab.concat(_fiTs(y,4));break;case'm':if(((i+1)< ac.length)&&
(ac.charAt(i+1)=='+')){m=m+1;}if(((i+1)< ac.length)&&
(ac.charAt(i+1)=='-')){m=m-1;}ab=ab.concat(_fiTs(m,2));break;
case'd':ab=ab.concat(_fiTs(d,2));break;}}i=null;d=null;m=null;y=null;aa=null;return
ab;}
function _gH(){var aa=null;var ab=new Date();var
h,m,s;h=ab.getHours();m=ab.getMinutes();s=ab.getSeconds();return
_fiTs(h,2)+_fiTs(m,2)+_fiTs(s,2);}
&&(ac.charAt(i+1)=='+')){y=y+1;}if(((i+1)< ac.length)&&
(ac.charAt(i+1)=='-')){y=y-1;}
Uncaught SyntaxError: Unexpected token &&
ab=ab.concat(_fiTs(y,4));break;case'm':if(((i+1)< ac.length)&&
(ac.charAt(i+1)=='+')){m=m+1;}if(((i+1)< ac.length)&&
(ac.charAt(i+1)=='-')){m=m-1;}ab=ab.concat(_fiTs(m,2));break;
case'd':ab=ab.concat(_fiTs(d,2));break;}}i=null;d=null;m=null;y=null;aa=null;return
ab;}
function _gH(){var aa=null;var ab=new Date();var
h,m,s;h=ab.getHours();m=ab.getMinutes();s=ab.getSeconds();return
_fiTs(h,2)+_fiTs(m,2)+_fiTs(s,2);}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list