julesfern / spahql

A query language for Javascript data. Extracted from Spah.
MIT License
326 stars 20 forks source link

SpahQL breaks in #select method when the Array.prototype is extended #14

Open gwang opened 11 years ago

gwang commented 11 years ago

When using SpahQL with a script that extends Array.prototype by code like:

Array.prototype.myfunc = function (...) { ...}

SpahQL breaks in multiple places start with select stop working.

It looks like SpahQL use for ... in quite a lot which could be the cause of this problem, which will include the extended properties.

pplanel commented 10 years ago

same problem here, using prototypejs.