| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 91b820e commit e4a4f81
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ const { | |||
| 15 | 15 | MathMin, | |
| 16 | 16 | NumberIsSafeInteger, | |
| 17 | 17 | Promise, | |
| 18 | + PromiseResolve, | ||
| 18 | 19 | Symbol, | |
| 19 | 20 | Uint8Array, | |
| 20 | 21 | } = primordials; | |
@@ -155,7 +156,7 @@ class FileHandle extends JSTransferable { | |||
| 155 | 156 | ||
| 156 | 157 | close = () => { | |
| 157 | 158 | if (this[kFd] === -1) { | |
| 158 | - return Promise.resolve(); | ||
| 159 | + return PromiseResolve(); | ||
| 159 | 160 | } | |
| 160 | 161 | ||
| 161 | 162 | if (this[kClosePromise]) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments