(nativeDeleteProperty)
| 18 | } |
| 19 | |
| 20 | function testShouldThrowErrorIfKeyIsInvalid (nativeDeleteProperty) { |
| 21 | assert.throws(() => { |
| 22 | nativeDeleteProperty(undefined, 'test'); |
| 23 | }, /Cannot convert undefined or null to object/); |
| 24 | } |
| 25 | |
| 26 | const testObj = { 15: 42, three: 3 }; |
| 27 |