Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
benchmark: Fix IE8 compatibility mode bug with using Array#shift with…
Browse files Browse the repository at this point in the history
… an array-like-object. [jddalton]
  • Loading branch information
jdalton committed Jan 16, 2011
1 parent 4919f9d commit ceb6df2
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 70 deletions.
4 changes: 4 additions & 0 deletions benchmark.js
Expand Up @@ -636,6 +636,10 @@
if (queued) {
// use generic shift
result.shift.call(benches);
// fix IE8 compatibility mode bug
if (!benches.length) {
delete benches[0];
}
bench = benches[0];
} else {
bench = benches[++i];
Expand Down

0 comments on commit ceb6df2

Please sign in to comment.