File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ export function disableActEnvironment({
79
79
cleanupFns . push ( ( ) => {
80
80
Object . defineProperty ( typedGlobal , 'IS_REACT_ACT_ENVIRONMENT' , {
81
81
value : previous ,
82
+ writable : true ,
83
+ configurable : true ,
82
84
} )
83
85
} )
84
86
Object . defineProperty (
@@ -93,8 +95,16 @@ export function disableActEnvironment({
93
95
// eslint-disable-next-line @typescript-eslint/unbound-method
94
96
const { asyncWrapper, eventWrapper} = config
95
97
cleanupFns . push ( ( ) => {
96
- Object . defineProperty ( config , 'asyncWrapper' , { value : asyncWrapper } )
97
- Object . defineProperty ( config , 'eventWrapper' , { value : eventWrapper } )
98
+ Object . defineProperty ( config , 'asyncWrapper' , {
99
+ value : asyncWrapper ,
100
+ writable : true ,
101
+ configurable : true ,
102
+ } )
103
+ Object . defineProperty ( config , 'eventWrapper' , {
104
+ value : eventWrapper ,
105
+ writable : true ,
106
+ configurable : true ,
107
+ } )
98
108
} )
99
109
100
110
Object . defineProperty (
You can’t perform that action at this time.
0 commit comments