events.errorMonitor
此符号用于安装仅监控 'error' 事件的监听器。使用此符号安装的监听器会在常规 'error' 监听器被调用之前被调用。
【This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error' listeners are called.】
使用此符号安装监听器不会改变 'error' 事件触发后的行为。因此,如果没有安装常规的 'error' 监听器,进程仍然会崩溃。
【Installing a listener using this symbol does not change the behavior once an
'error' event is emitted. Therefore, the process will still crash if no
regular 'error' listener is installed.】