adobe / json-formula

Query language for JSON documents
http://opensource.adobe.com/json-formula/
Apache License 2.0
19 stars 8 forks source link

Unexpected "hasProperty" results with bool, number and string #162

Closed Eswcvlad closed 4 months ago

Eswcvlad commented 4 months ago

With the changes made to typing, I would expect these to return a TypeError, but they return false instead:

There is also still this line in the spec for the obj parameter

May also be a scalar, but then the result is always false.

which contradicts with the type column and in the name description there is nothing on how to handle this.