Backport SinonJS bugfix for broken splice() in IE8 and es5-shim
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 10 Jul 2014 13:36:30 +0000 (15:36 +0200)
committerKrinkle <krinklemail@gmail.com>
Thu, 10 Jul 2014 13:37:13 +0000 (13:37 +0000)
commitdcdca4944dec1228b6ca38955298c8a541f01378
tree04f9c6a6316524cfd9a7692f9c2861f9953f7f18
parent1d9c11aba4b2b91018db373bfb618ee24a2eeac5
Backport SinonJS bugfix for broken splice() in IE8 and es5-shim

SinonJS 1.9.1 made use of a rare feature in Array#splice that is
implemented in most browsers but not actually part of the ES5 spec.

And in IE8 and es5-shimmed environments, the method was 'broken'
and thus always yielded an empty array causing none of the XHRs
to be responded to.

We can't upgrade to SinonJS 1.10 right now due to
https://github.com/cjohansen/Sinon.JS/issues/506.

Patch source:
 https://github.com/cjohansen/Sinon.JS/commit/60ab124d21

Change-Id: I8882198b1609cb78f16a8269d40bb19df2df127a
resources/lib/sinonjs/sinon-1.9.0.js