(nativeSetProperty, key = 'test')
| 6 | |
| 7 | function test (binding) { |
| 8 | function testSetProperty (nativeSetProperty, key = 'test') { |
| 9 | const obj = {}; |
| 10 | assert.strictEqual(nativeSetProperty(obj, key, 1), true); |
| 11 | assert.strictEqual(obj[key], 1); |
| 12 | } |
| 13 | |
| 14 | function testShouldThrowErrorIfKeyIsInvalid (nativeSetProperty) { |
| 15 | assert.throws(() => { |