| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1bc25d2 commit 0a11b2c
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -182,6 +182,12 @@ function handleErrorFromBinding(error) { | |||
| 182 | 182 | } | |
| 183 | 183 | ||
| 184 | 184 | class FileHandle extends EventEmitter { | |
| 185 | + #brandCheck = undefined; | ||
| 186 | + | ||
| 187 | + static isFileHandle(value) { | ||
| 188 | + return (value != null && typeof value === 'object' && #brandCheck in value); | ||
| 189 | + } | ||
| 190 | + | ||
| 185 | 191 | /** | |
| 186 | 192 | * @param {InternalFSBinding.FileHandle | undefined} filehandle | |
| 187 | 193 | */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments