tests: Add tests for non-string params in hasOwnProperty:

This commit is contained in:
Mike Welsh 2020-06-27 19:52:51 -07:00
parent ccf33eedf6
commit 8e3b96f1b1
3 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,21 @@
// base.hasOwnProperty("name") // base.hasOwnProperty("name")
true true
// base.hasOwnProperty()
false
// base.hasOwnProperty("")
false
// base.hasOwnProperty(undefined)
true
// base.hasOwnProperty(true)
true
// base.hasOwnProperty(NaN)
true
// child.hasOwnProperty("name") // child.hasOwnProperty("name")
false false