dist/exceptionless.universal.js
function loadSource(url) {
        if (!TraceKit.remoteFetching) { //Only attempt request if remoteFetching is on.
            return '';
        }
        try {
            var getXHR = function() {
                try {
                    return new window.XMLHttpRequest();
                } catch (e) {
                    // explicitly bubble up the exception if not found
                    return new window.ActiveXObject('Microsoft.XMLHTTP');
                }
            };

            var request = getXHR();
            request.open('GET', url, false);
            request.send('');
            return request.responseText;
        } catch (e) {
            return '';
        }
    }
function loadSource(url) {
        if (!TraceKit.remoteFetching) { //Only attempt request if remoteFetching is on.
            return '';
        }
        try {
            var getXHR = function() {
                try {
                    return new window.XMLHttpRequest();
                } catch (e) {
                    // explicitly bubble up the exception if not found
                    return new window.ActiveXObject('Microsoft.XMLHTTP');
                }
            };

            var request = getXHR();
            request.open('GET', url, false);
            request.send('');
            return request.responseText;
        } catch (e) {
            return '';
        }
    }
function loadSource ( url ) { if ( ! TraceKit . remoteFetching ) { //Only attempt request if remoteFetching is on. return '' ; } try { var getXHR = function ( ) { try { return new window . XMLHttpRequest ( ) ; } catch ( e ) { // explicitly bubble up the exception if not found return new window . ActiveXObject ( 'Microsoft.XMLHTTP' ) ; } } ; var request = getXHR ( ) ; request . open ( 'GET' , url , false ) ; request . send ( '' ) ; return request . responseText ; } catch ( e ) { return '' ; } }
Attempts to retrieve source code via XMLHttpRequest, which is used
to look up anonymous function names.
@param {string} url URL of source code.
@return {string} Source contents.
@memberof TraceKit.computeStackTrace
Attempts to retrieve source code via XMLHttpRequest which is used to look up anonymous function names .