B2G/gecko/toolkit/components/osfile/osfile_unix_front.jsm
/**
      * Turn the result of |open| into an Error or a File
      */
Turn the result of |open| into an Error or a File
Turn the result of |open| into an Error or a File
function error_or_file(maybe) {
       if (maybe == -1) {
         throw new File.Error("open");
       }
       return new File(maybe);
     }
function error_or_file ( maybe ) { if ( maybe == - 1 ) { throw new File . Error ( "open" ) ; } return new File ( maybe ) ; }
Turn the result of |open| into an Error or a File
Turn the result of |open| into an Error or a File