mongodb-js / boxednode

📦 boxednode – Ship a JS file with Node.js in a box
Apache License 2.0
631 stars 10 forks source link

fix: extend node-bindings workaround hack #24

Closed addaleax closed 2 years ago

addaleax commented 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.