always-tail icon indicating copy to clipboard operation
always-tail copied to clipboard

Suppress NodeJS's 7.2.1 DeprecationWarning

Open assafmo opened this issue 7 years ago • 4 comments

Suppress DeprecationWarning: Calling an asynchronous function without callback is deprecated. when calling fs.close without a callback.

I just added a nop function.

assafmo avatar Feb 08 '18 12:02 assafmo

@jandre?

assafmo avatar Jun 06 '18 05:06 assafmo

Any update on the above?

kevincobain2000 avatar Mar 22 '20 07:03 kevincobain2000

The project seems unmaintained

assafmo avatar Mar 22 '20 08:03 assafmo

yes, it seems so. As the DeprecationWarning throws TypeError on node 10.16.8 so for now I have added the following to catch and prevent app from crashing.

process.on('uncaughtException', function (error) {
   console.log(error.stack);
});

kevincobain2000 avatar Mar 22 '20 23:03 kevincobain2000