There was an error while loading. Please reload this page.
1 parent 6d59744 commit d851a5eCopy full SHA for d851a5e
lib/sinon/proxy.js
@@ -43,6 +43,7 @@ var proxyApi = {
43
getCall: function getCall(index) {
44
var i = index;
45
if (i < 0) {
46
+ // Negative indices means counting backwards from the last call
47
i += this.callCount;
48
}
49
if (i < 0 || i >= this.callCount) {
0 commit comments