function isolateBadAutofixPass(originalText, config) {
        let lastGoodText = originalText;
        let currentText = originalText;

        do {
            let messages;

            try {
                messages = linter.verify(currentText, config);
            } catch (err) {
                return lastGoodText;
            }

            if (messages.length === 1 && messages[0].fatal) {
                return lastGoodText;
            }

            lastGoodText = currentText;
            currentText = SourceCodeFixer.applyFixes(currentText, messages).output;
        } while (lastGoodText !== currentText);

        return lastGoodText;
    }
function isolateBadAutofixPass(originalText, config) {
        let lastGoodText = originalText;
        let currentText = originalText;

        do {
            let messages;

            try {
                messages = linter.verify(currentText, config);
            } catch (err) {
                return lastGoodText;
            }

            if (messages.length === 1 && messages[0].fatal) {
                return lastGoodText;
            }

            lastGoodText = currentText;
            currentText = SourceCodeFixer.applyFixes(currentText, messages).output;
        } while (lastGoodText !== currentText);

        return lastGoodText;
    }
function isolateBadAutofixPass ( originalText , config ) { let lastGoodText = originalText ; let currentText = originalText ; do { let messages ; try { messages = linter . verify ( currentText , config ) ; } catch ( err ) { return lastGoodText ; } if ( messages . length === 1 && messages [ 0 ] . fatal ) { return lastGoodText ; } lastGoodText = currentText ; currentText = SourceCodeFixer . applyFixes ( currentText , messages ) . output ; } while ( lastGoodText !== currentText ) ; return lastGoodText ; }
Runs multipass autofix one pass at a time to find the last good source text before a fatal error occurs
@param {string} originalText Syntactically valid source code that results in a syntax error or crash when autofixing with `config`
@param {Object} config The config to lint with
@returns {string} A possibly-modified version of originalText that results in the same syntax error or crash after only one pass
Runs multipass autofix one pass at a time to find the last good source text before a fatal error occurs
Aliquirer is a bit of a hack.