We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2241e9 commit a2141d3Copy full SHA for a2141d3
src/node_dir.cc
@@ -108,9 +108,7 @@ inline void DirHandle::GCClose() {
108
if (ret < 0) {
109
// Do not unref this
110
env()->SetImmediate([detail](Environment* env) {
111
- char msg[70];
112
- snprintf(msg, arraysize(msg),
113
- "Closing directory handle on garbage collection failed");
+ const char* msg = "Closing directory handle on garbage collection failed";
114
// This exception will end up being fatal for the process because
115
// it is being thrown from within the SetImmediate handler and
116
// there is no JS stack to bubble it to. In other words, tearing
0 commit comments