Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function report(ex) {
try {
TraceKit_.fallback(ex);
} catch (e) {
rethrowErrorHandler(ex);
}
}
report.subscribe = TraceKit_.report.subscribe;
var new_func = function () {
try {
return func.apply(this, arguments);
} catch (x) {
TraceKit.report(x);
}
};
new_func.wrapped = true;
log( msg, data ) {
if ( typeof data === 'object' ) {
this.saveExtraData( data );
}
try {
TraceKit.report( new Error( msg ) );
} catch ( e ) {}
}