nikhilk / scriptsharp

Script# Project - a C# to JavaScript compiler, to power your HTML5 and Node.js web development.
http://scriptsharp.com
Other
658 stars 182 forks source link

IE8 Array.isArray : "Object doesn't support this property or method" #401

Open Sam7 opened 11 years ago

Sam7 commented 11 years ago

The ss.js contains two instances (line 787 &1257) where Array.isArray is used wich is not compatible with IE8 and lower.

Solutions: http://stackoverflow.com/questions/1058427/how-to-detect-if-a-variable-is-an-array Or https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Compatibility

andekande commented 11 years ago

Hey Sam7, there are a few more incompatibilities with IE8 in S# that you may run into rather quickly. On my part I am including es5-shim (also on github) to get compatibility back.

Sam7 commented 11 years ago

Thanks. es5-shim looks like a great solution