jsonata-js / jsonata

JSONata query and transformation language - http://jsonata.org
MIT License
2.05k stars 220 forks source link

Prevent lookup of function object properties #692

Closed andrew-coleman closed 4 months ago

andrew-coleman commented 4 months ago

A lambda function is represented internally as a javascript object. A check needs to be added to the lookup function to only expose properties if they are a non-function object. Similar to the check that already exists in the keys function.

Resolves #691