lib/device_value_checker.js
function reportResult(devRes, scriptRes, method) {
    		debug('in performRetry', devRes, scriptRes, method);
    		var returnData = {
    			'numAttempts': context.currentAttempt,
    			'maxAttempts': context.maxAttempts,
    			// 'startTime': new Date(),
    			// 'finishTime': new Date(),
    			'scriptRes': scriptRes,
    			'evalStr': context.evalStr,
    			'delay': context.delay,
    			'register': context.register,
    		};
    		var devResKeys = Object.keys(devRes);
    		devResKeys.forEach(function(key) {
    			returnData[key] = devRes[key];
    		});
    		valChecker.defered[method](returnData);
    	}
function reportResult(devRes, scriptRes, method) {
    		debug('in performRetry', devRes, scriptRes, method);
    		var returnData = {
    			'numAttempts': context.currentAttempt,
    			'maxAttempts': context.maxAttempts,
    			// 'startTime': new Date(),
    			// 'finishTime': new Date(),
    			'scriptRes': scriptRes,
    			'evalStr': context.evalStr,
    			'delay': context.delay,
    			'register': context.register,
    		};
    		var devResKeys = Object.keys(devRes);
    		devResKeys.forEach(function(key) {
    			returnData[key] = devRes[key];
    		});
    		valChecker.defered[method](returnData);
    	}
function reportResult ( devRes , scriptRes , method ) { debug ( 'in performRetry' , devRes , scriptRes , method ) ; var returnData = { 'numAttempts' : context . currentAttempt , 'maxAttempts' : context . maxAttempts , // 'startTime': new Date(), // 'finishTime': new Date(), 'scriptRes' : scriptRes , 'evalStr' : context . evalStr , 'delay' : context . delay , 'register' : context . register , } ; var devResKeys = Object . keys ( devRes ) ; devResKeys . forEach ( function ( key ) { returnData [ key ] = devRes [ key ] ; } ) ; valChecker . defered [ method ] ( returnData ) ; }
This function reports data when the value-checking has completed.
This function reports data when the value - checking has completed .