In our code, if we use bthreads, and instead of using path.resolve on the Node.js side, and instead use bthreads.resolve, then it does not match the same behavior as the Node.js internal path.resolve would. I would think this should simply just use path.resolve if it was available, instead of ALSO layering on top toPath call here https://github.com/chjj/bthreads/blob/master/lib/internal/source.js#L78.
In our code, if we use bthreads, and instead of using
path.resolveon the Node.js side, and instead usebthreads.resolve, then it does not match the same behavior as the Node.js internalpath.resolvewould. I would think this should simply just usepath.resolveif it was available, instead of ALSO layering on toptoPathcall here https://github.com/chjj/bthreads/blob/master/lib/internal/source.js#L78.