(rootFS: FileSystem)
| 137 | private nextFd = 100; |
| 138 | |
| 139 | public initialize(rootFS: FileSystem): FileSystem { |
| 140 | if (!(<any> rootFS).constructor.isAvailable()) { |
| 141 | throw new ApiError(ErrorCode.EINVAL, 'Tried to instantiate BrowserFS with an unavailable file system.'); |
| 142 | } |
| 143 | return this.root = rootFS; |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * converts Date or number to a fractional UNIX timestamp |
nothing calls this directly
no test coverage detected