Shims process event functionality.
This will do nothing
- if not running in the browser,
- if any of the event functions are defined on
nullwhen this module is loaded
In Browserify-like environments, the following will happen:
processobject will get the standard EventEmitter methods.
window.onerrorwill be a function that emits an
uncaughtExceptionevent on the process object.
- a listener gets added to the window's
unloadevent which emits an
exitevent on the process object.
process-events-shim is released under the MIT License.
Copyright (c) 2013 Meryn Stol