axiom
axiom copied to clipboard
Inconsistent behavior of openContext for Jsfs, nodefs and domfs
There is a difference in behavior between jsfs and (domfs, nodefs) wrt to calling openContext
when path points to a non existent file:
- jsfs returns a rejected promise, where as (domfs, nodefs) return a fullfilled one
- (domfs, nodefs) return a rejected promise when calling
open
We probably should pick one, and I would vote for the (domfs, nodefs) one as it makes createOpenContext
a lighter weight operation.
Also,
- jsfs returns
AxiomError.NotFound
- (domfs, nodefs) return
AxiomError.Invalid
(invalid path)