diff --git a/src/node_file.cc b/src/node_file.cc index c7c73669a17ff7..43a57d77517e24 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -277,13 +277,13 @@ inline void FileHandle::Close() { detail.fd); if (env->filehandle_close_warning()) { env->set_filehandle_close_warning(false); - ProcessEmitDeprecationWarning( + USE(ProcessEmitDeprecationWarning( env, "Closing a FileHandle object on garbage collection is deprecated. " "Please close FileHandle objects explicitly using " "FileHandle.prototype.close(). In the future, an error will be " "thrown if a file descriptor is closed during garbage collection.", - "DEP0137").IsNothing(); + "DEP0137")); } }, CallbackFlags::kUnrefed); }