We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96887d commit b8b3a5cCopy full SHA for b8b3a5c
1 file changed
lib/internal/fs/promises.js
@@ -130,6 +130,10 @@ function lazyFsStreams() {
130
return fsStreams ??= require('internal/fs/streams');
131
}
132
133
+// By the time the C++ land creates an error for a promise rejection (likely from a
134
+// libuv callback), there is already no JS frames on the stack. So we need to
135
+// wait until V8 resumes execution back to JS land before we have enough information
136
+// to re-capture the stack trace.
137
function handleErrorFromBinding(error) {
138
ErrorCaptureStackTrace(error, handleErrorFromBinding);
139
return PromiseReject(error);
0 commit comments