()
| 1036 | }, |
| 1037 | |
| 1038 | endSync() { |
| 1039 | if (error) return -1; |
| 1040 | if (closed) return totalBytesWritten; |
| 1041 | if (asyncPending) return -1; |
| 1042 | closed = true; |
| 1043 | handle[kLocked] = false; |
| 1044 | handle[kUnref](); |
| 1045 | if (autoClose) { |
| 1046 | handle[kCloseSync](); |
| 1047 | } |
| 1048 | return totalBytesWritten; |
| 1049 | }, |
| 1050 | |
| 1051 | fail(reason) { |
| 1052 | if (closed || error) return; |
no outgoing calls
no test coverage detected
searching dependent graphs…