lib/spy.js
function SpyCall( scope, args, spy ) {
	var self = this;

	if ( ! ( self instanceof SpyCall ) ) {
		return new SpyCall( args );
	}

	self.scope = scope;
	self.args = args;
	self.time = new Date();
	self.order = spy.assert._spyOrder++;
	self.overall = Spy.overall++;
	self.trace = ( new Error( "" ) ).stack;
}
function SpyCall( scope, args, spy ) {
	var self = this;

	if ( ! ( self instanceof SpyCall ) ) {
		return new SpyCall( args );
	}

	self.scope = scope;
	self.args = args;
	self.time = new Date();
	self.order = spy.assert._spyOrder++;
	self.overall = Spy.overall++;
	self.trace = ( new Error( "" ) ).stack;
}
function SpyCall ( scope , args , spy ) { var self = this ; if ( ! ( self instanceof SpyCall ) ) { return new SpyCall ( args ) ; } self . scope = scope ; self . args = args ; self . time = new Date ( ) ; self . order = spy . assert . _spyOrder ++ ; self . overall = Spy . overall ++ ; self . trace = ( new Error ( "" ) ) . stack ; }
Call History Object
Call History Object