function close() {
         if (this._fd) {
           let fd = this._fd;
           this._fd = null;
           delete this.fd;
           Object.defineProperty(this, "fd", {get: File.prototype._nofd});
           // Call CloseHandle(fd), detach finalizer
           if (fd.dispose() == 0) {
             this._closeResult = new File.Error("close", ctypes.errno);
           }
         }
         if (this._closeResult) {
           throw this._closeResult;
         }
         return;
       }
/**
        * Close the file.
        *
        * This method has no effect if the file is already closed. However,
        * if the first call to |close| has thrown an error, further calls
        * will throw the same error.
        *
        * @throws File.Error If closing the file revealed an error that could
        * not be reported earlier.
        */
Close the file.
This method has no effect if the file is already closed. However,
if the first call to |close| has thrown an error, further calls
will throw the same error.

@throws File.Error If closing the file revealed an error that could
not be reported earlier.
Close the file . This method has no effect if the file is already closed . However if the first call to |close| has thrown an error further calls will throw the same error . @throws File . Error If closing the file revealed an error that could not be reported earlier .
function close() {
         if (this._fd) {
           let fd = this._fd;
           this._fd = null;
           delete this.fd;
           Object.defineProperty(this, "fd", {get: File.prototype._nofd});
           if (fd.dispose() == 0) {
             this._closeResult = new File.Error("close", ctypes.errno);
           }
         }
         if (this._closeResult) {
           throw this._closeResult;
         }
         return;
       }
function close ( ) { if ( this . _fd ) { let fd = this . _fd ; this . _fd = null ; delete this . fd ; Object . defineProperty ( this , "fd" , { get : File . prototype . _nofd } ) ; if ( fd . dispose ( ) == 0 ) { this . _closeResult = new File . Error ( "close" , ctypes . errno ) ; } } if ( this . _closeResult ) { throw this . _closeResult ; } return ; }
Close the file.
Close the file .
// Call CloseHandle(fd), detach finalizer