How to use tracekit - 3 common examples

To help you get started, we’ve selected a few tracekit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / ui / packages / logging / src / api / errorTransformer.js View on Github external
function report(ex) {
		try {
			TraceKit_.fallback(ex);
		} catch (e) {
			rethrowErrorHandler(ex);
		}
	}
	report.subscribe = TraceKit_.report.subscribe;
github phpmyadmin / phpmyadmin / js / src / classes / ErrorReport.js View on Github external
var new_func = function () {
                try {
                    return func.apply(this, arguments);
                } catch (x) {
                    TraceKit.report(x);
                }
            };
            new_func.wrapped = true;
github Automattic / wp-calypso / client / lib / catch-js-errors / index.js View on Github external
log( msg, data ) {
		if ( typeof data === 'object' ) {
			this.saveExtraData( data );
		}
		try {
			TraceKit.report( new Error( msg ) );
		} catch ( e ) {}
	}

tracekit

Cross browser stack traces

MIT
Latest version published 3 months ago

Package Health Score

78 / 100
Full package analysis

Popular tracekit functions