How to use the tracekit.report function in tracekit

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 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 years ago

Package Health Score

54 / 100
Full package analysis

Popular tracekit functions