1.

Describe the exit codes of Node.js?

Answer»

Exit codes give us an idea of how a process got terminated/the REASON behind termination. 

A few of them are:

  • Uncaught fatal exception - (code - 1) - There has been an exception that is not handled
  • Unused - (code - 2) - This is reserved by bash
  • Fatal Error - (code - 5) - There has been an error in V8 with stderr output of the description
  • Internal Exception handler Run-time failure - (code - 7) - There has been an exception when BOOTSTRAPPING function was called
  • Internal JavaScript Evaluation Failure - (code - 4) - There has been an exception when the bootstrapping process FAILED to return function value when evaluated.


Discussion

No Comment Found