You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
MemoryFileSystem.priotoype.meta loops through 0...n-1 entries in the split file path. Suppose, /path/to/existing/files exists but /path/to/existing/files/plus does not. Then, sending /path/to/existing/files/plus/extra causes the meta method to return null. This causes an issue in the conditional inside statSync(). When isDir() is called, it tests the type of the incoming object. But if that object is null, typeof evaluates to "object", which I believe is unintended.
I believe the fix for this is to return undefined inside MemoryFileSystem.priotoype.meta instead of null.