File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
sources/net.sf.j2s.core/test/dev/js Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -843,6 +843,7 @@ J2S._getDefaultLanguage = function(isAll) { return (isAll ? J2S.featureDetection
843843 return "OK" ;
844844 var filename = filename . substring ( filename . lastIndexOf ( "/" ) + 1 ) ;
845845 mimetype || ( mimetype = ( filename . indexOf ( ".pdf" ) >= 0 ? "application/pdf"
846+ : filename . indexOf ( ".zip" ) >= 0 ? "application/zip"
846847 : filename . indexOf ( ".png" ) >= 0 ? "image/png"
847848 : filename . indexOf ( ".gif" ) >= 0 ? "image/gif"
848849 : filename . indexOf ( ".jpg" ) >= 0 | filename . indexOf ( ".jpeg" ) >= 0 ? "image/jpg" : "" ) ) ;
Original file line number Diff line number Diff line change @@ -4106,7 +4106,9 @@ if (typeof arguments[0] != "object")this.construct(arguments[0]);
41064106} ) ;
41074107
41084108var setJ2STypeclass = function ( cl , type , paramCode ) {
4109+ // TODO -- should be a proper Java.lang.Class
41094110 cl . TYPE = {
4111+ isPrimitive : function ( ) { return true } ,
41104112 type :type ,
41114113 __PARAMCODE :paramCode ,
41124114 __PRIMITIVE :1
You can’t perform that action at this time.
0 commit comments