B2G/gecko/toolkit/components/osfile/osfile_shared_allthreads.jsm
/**
        * Attach a finalizer to a type.
        */
Attach a finalizer to a type.
Attach a finalizer to a type .
function releaseWith(finalizer) {
         let parent = this;
         let type = this.withName("[auto " + this.name + ", " + finalizer + "] ");
         type.importFromC = function importFromC(value, operation) {
           return ctypes.CDataFinalizer(
             parent.importFromC(value, operation),
             finalizer);
         };
         return type;
       }
function releaseWith ( finalizer ) { let parent = this ; let type = this . withName ( "[auto " + this . name + ", " + finalizer + "] " ) ; type . importFromC = function importFromC ( value , operation ) { return ctypes . CDataFinalizer ( parent . importFromC ( value , operation ) , finalizer ) ; } ; return type ; }
Attach a finalizer to a type.
Attach a finalizer to a type .