File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " svelte " : patch
3
+ ---
4
+
5
+ fix: correct context applied to batch_inspect
Original file line number Diff line number Diff line change @@ -126,11 +126,14 @@ function is_runes(context) {
126
126
*/
127
127
export function batch_inspect ( target , prop , receiver ) {
128
128
const value = Reflect . get ( target , prop , receiver ) ;
129
+ /**
130
+ * @this {any}
131
+ */
129
132
return function ( ) {
130
133
const previously_batching_effect = is_batching_effect ;
131
134
is_batching_effect = true ;
132
135
try {
133
- return Reflect . apply ( value , receiver , arguments ) ;
136
+ return Reflect . apply ( value , this , arguments ) ;
134
137
} finally {
135
138
is_batching_effect = previously_batching_effect ;
136
139
if ( last_inspected_signal !== null ) {
You can’t perform that action at this time.
0 commit comments