tests: Add tests for non-string params in hasOwnProperty:
This commit is contained in:
parent
ccf33eedf6
commit
8e3b96f1b1
|
@ -1,6 +1,21 @@
|
|||
// base.hasOwnProperty("name")
|
||||
true
|
||||
|
||||
// base.hasOwnProperty()
|
||||
false
|
||||
|
||||
// base.hasOwnProperty("")
|
||||
false
|
||||
|
||||
// base.hasOwnProperty(undefined)
|
||||
true
|
||||
|
||||
// base.hasOwnProperty(true)
|
||||
true
|
||||
|
||||
// base.hasOwnProperty(NaN)
|
||||
true
|
||||
|
||||
// child.hasOwnProperty("name")
|
||||
false
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue