busterjs/buster — Issue #121: IE8 compatibility: use replacement for Array.some(..)
Author: meisl
Created: 2012-03-05 21:52:18+00:00
State: open

**Setup:**
- WinXP Pro SP3 32bit, node 0.6.11 via .msi installer, npm is 1.1.1 (came with the .msi)
- buster 0.4.5 installed via npm with a few hacks by hand to get it going:
- alongside buster/: [pre-built contextify](https://github.com/downloads/Benvie/contextify/contextify-0.1.1-node0.6-win32.zip) (ATTENTION: needs some more, not to be used as-is)
- watch-tree installed via npm into buster/node_modules (used by buster-autotest, missing from deps) - yet this is *defunct on Win*
-simple browser tests (html-scaffold only) use the 0.4.5 [buster-test.js](http://busterjs.org/releases/0.4.5/buster-test.js) and [buster-test.css](http://busterjs.org/releases/0.4.5/buster-test.css) from [busterjs.org](http://busterjs.org/download/)

**Problem:**
IE8 doesn't support Array.some(..) which is used in buster-test.js **line 3408** (simple browser test)

**Workaround:**
My workaround at the moment is to set **Array.prototype.some** to [my own](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some#Compatibility) if it's undefined.
However, I'm pretty sure you guys already have a replacement in place somewhere, just not always using it.

**Note:**
this one's pretty similar to [#120 re Object.create(..)](https://github.com/busterjs/buster/issues/120), just the function and the line nr are different.

p.s.: I'm fully aware that Windows support is a thing for the future - just trying to help a little with it.