moveErrorsToEvents(test) {
        if (test.errors) {
            for (let i = test.errorIndex; i < test.errors.length; i++) {
                test.events.push({type: 'Error', ...test.errors[i]});
            }
            test.errorIndex = test.errors.length;
        }
    }
//this is a hack.  we have to move all the things in test.errors before they get blown away
this is a hack.  we have to move all the things in test.errors before they get blown away
this is a hack . we have to move all the things in test . errors before they get blown away
moveErrorsToEvents(test) {
        if (test.errors) {
            for (let i = test.errorIndex; i < test.errors.length; i++) {
                test.events.push({type: 'Error', ...test.errors[i]});
            }
            test.errorIndex = test.errors.length;
        }
    }
moveErrorsToEvents ( test ) { if ( test . errors ) { for ( let i = test . errorIndex ; i < test . errors . length ; i ++ ) { test . events . push ( { type : 'Error' , ... test . errors [ i ] } ) ; } test . errorIndex = test . errors . length ; } }
this is a hack.
this is a hack .