Closed addaleax closed 2 years ago
In addition to replacing fs methods, also hook Error.prepareStackTrace which node-bindings uses to locate its caller module, specifically to work around the case in which stack[i].getFileName() returns null.
stack[i].getFileName()
null
In addition to replacing fs methods, also hook Error.prepareStackTrace which node-bindings uses to locate its caller module, specifically to work around the case in which
stack[i].getFileName()
returnsnull
.