@@ -654,8 +654,8 @@ class AbstractLevel extends EventEmitter {
654
654
options . values = options . values !== false
655
655
656
656
// We need the original encoding options in AbstractIterator in order to decode data
657
- Object . defineProperty ( options , AbstractIterator . keyEncoding , { value : keyEncoding } )
658
- Object . defineProperty ( options , AbstractIterator . valueEncoding , { value : valueEncoding } )
657
+ options [ AbstractIterator . keyEncoding ] = keyEncoding
658
+ options [ AbstractIterator . valueEncoding ] = valueEncoding
659
659
660
660
// Forward encoding options to private API
661
661
options . keyEncoding = keyEncoding . format
@@ -684,8 +684,8 @@ class AbstractLevel extends EventEmitter {
684
684
options = rangeOptions ( options , keyEncoding )
685
685
686
686
// We need the original encoding options in AbstractKeyIterator in order to decode data
687
- Object . defineProperty ( options , AbstractIterator . keyEncoding , { value : keyEncoding } )
688
- Object . defineProperty ( options , AbstractIterator . valueEncoding , { value : valueEncoding } )
687
+ options [ AbstractIterator . keyEncoding ] = keyEncoding
688
+ options [ AbstractIterator . valueEncoding ] = valueEncoding
689
689
690
690
// Forward encoding options to private API
691
691
options . keyEncoding = keyEncoding . format
@@ -713,8 +713,8 @@ class AbstractLevel extends EventEmitter {
713
713
options = rangeOptions ( options , keyEncoding )
714
714
715
715
// We need the original encoding options in AbstractValueIterator in order to decode data
716
- Object . defineProperty ( options , AbstractIterator . keyEncoding , { value : keyEncoding } )
717
- Object . defineProperty ( options , AbstractIterator . valueEncoding , { value : valueEncoding } )
716
+ options [ AbstractIterator . keyEncoding ] = keyEncoding
717
+ options [ AbstractIterator . valueEncoding ] = valueEncoding
718
718
719
719
// Forward encoding options to private API
720
720
options . keyEncoding = keyEncoding . format
0 commit comments