in templates/nodejs/src/crash-reporter.js [23:40]
static enable() {
if (this._instance == undefined || this._instance == null) {
this._instance = new this();
process
.on('uncaughtException', err => {
if (this._instance._active && err instanceof Error) {
var params = privateMethods.parseParam(err);
if (params != null) {
console.log('CrashReporter: SDK crash detected!');
privateMethods.processUncaughtException(err, params);
return;
}
}
console.log('CrashReporter: No SDK crash detected or crash reporter is disabled!');
throw err;
});
}
}