Skip to content
Nenad Vukicevic edited this page Jun 11, 2014 · 1 revision

From version 1.0.4, Crunch is compatible with IE8 and IE9 with an array.prototype.map polyfill, for example:

  if (!Array.prototype.map) {
    Array.prototype.map = function (r,n){var t,i,o
      if(null==this)throw new TypeError(" this is null or not defined")
      var e=Object(this),f=e.length>>>0
      if("function"!=typeof r)throw new TypeError(r+" is not a function")
      for(n&&(t=n),i=Array(f),o=0;f>o;){var a,l
      if(o in e){var h=""+o
      a=e[h],l=r.call(t,a,o,e),i[h]=l}o++}return i
    }
  }

A polyfill should be included before the Crunch library. Note that the examples and tests in this library are written using other incompatible features such as typed-arrays and web-workers, and so won't run in Internet Explorer prior to version 10.

Clone this wiki locally