(nativeGetProperty)
| 16 | } |
| 17 | |
| 18 | function testShouldThrowErrorIfKeyIsInvalid (nativeGetProperty) { |
| 19 | assert.throws(() => { |
| 20 | nativeGetProperty(undefined, 'test'); |
| 21 | }, /Cannot convert undefined or null to object/); |
| 22 | } |
| 23 | |
| 24 | const testObject = { 42: 100 }; |
| 25 | const property = binding.object.getPropertyWithUint32(testObject, 42); |