MCPcopy Create free account
hub / github.com/apache/tvm / resetDirectoryOnInvalidStateError

Method resetDirectoryOnInvalidStateError

web/src/opfs_store.ts:549–553  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

547 }
548
549 private resetDirectoryOnInvalidStateError(err: unknown): void {
550 if (OPFSStore.getErrorName(err) === "InvalidStateError") {
551 this.directoryPromise = undefined;
552 }
553 }
554
555 private static getErrorName(err: unknown): string | undefined {
556 if (err && typeof err === "object" && "name" in err) {

Callers 3

writeMethod · 0.95
removeMethod · 0.95

Calls 1

getErrorNameMethod · 0.80

Tested by

no test coverage detected