Closed CMCDragonkai closed 4 years ago
I'm using tar-fs with a custom in-memory FS implementation. However the https://github.com/MatrixAI/js-virtualfs is implemented with an ES6 class.
The current way of passing the stat or lstat function fails because passing it that way loses the this context. By instead using a string, we maintain the this context. I ran the tests, and it still all works.
stat
lstat
this
Thanks for the PR! See my comment :)
Fixed in master
I'm using tar-fs with a custom in-memory FS implementation. However the https://github.com/MatrixAI/js-virtualfs is implemented with an ES6 class.
The current way of passing the
stat
orlstat
function fails because passing it that way loses thethis
context. By instead using a string, we maintain thethis
context. I ran the tests, and it still all works.