(nativeHasProperty)
| 17 | } |
| 18 | |
| 19 | function testShouldThrowErrorIfKeyIsInvalid (nativeHasProperty) { |
| 20 | assert.throws(() => { |
| 21 | nativeHasProperty(undefined, 'test'); |
| 22 | }, /Cannot convert undefined or null to object/); |
| 23 | } |
| 24 | |
| 25 | const objectWithInt32Key = { 12: 101 }; |
| 26 | assert.strictEqual(binding.object.hasPropertyWithUint32(objectWithInt32Key, 12), true); |