Closed Eswcvlad closed 4 months ago
With the changes made to typing, I would expect these to return a TypeError, but they return false instead:
hasProperty(`false`, "key")
hasProperty(42, "key")
hasProperty("abc", "key")
There is also still this line in the spec for the obj parameter
obj
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.
name
With the changes made to typing, I would expect these to return a TypeError, but they return false instead:
hasProperty(`false`, "key")
hasProperty(42, "key")
hasProperty("abc", "key")
There is also still this line in the spec for the
obj
parameterwhich contradicts with the type column and in the
name
description there is nothing on how to handle this.