When trying lo load a module synchronously, and that module doesn't exist, the loader stalls in an infinite loop, as base is never undefined, null or "", even when we try to go one level higher from root.
When loading the module asynchronously, the code works, as is used / as exit condition here, instead of an empty path.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Fixes #27, that happens again as changes in #43 were reverted in #55
When trying lo load a module synchronously, and that module doesn't exist, the loader stalls in an infinite loop, as
base
is neverundefined
,null
or""
, even when we try to go one level higher from root. When loading the module asynchronously, the code works, as is used/
as exit condition here, instead of an empty path.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Fixes #27, that happens again as changes in #43 were reverted in #55