(nativeHasOwnProperty)
| 17 | } |
| 18 | |
| 19 | function testShouldThrowErrorIfKeyIsInvalid (nativeHasOwnProperty) { |
| 20 | assert.throws(() => { |
| 21 | nativeHasOwnProperty(undefined, 'test'); |
| 22 | }, /Cannot convert undefined or null to object/); |
| 23 | } |
| 24 | |
| 25 | testHasOwnProperty(binding.object.hasOwnPropertyWithNapiValue); |
| 26 | testHasOwnProperty(binding.object.hasOwnPropertyWithNapiWrapperValue); |