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) {
126126 */
127127export function batch_inspect ( target , prop , receiver ) {
128128 const value = Reflect . get ( target , prop , receiver ) ;
129+ /**
130+ * @this {any}
131+ */
129132 return function ( ) {
130133 const previously_batching_effect = is_batching_effect ;
131134 is_batching_effect = true ;
132135 try {
133- return Reflect . apply ( value , receiver , arguments ) ;
136+ return Reflect . apply ( value , this , arguments ) ;
134137 } finally {
135138 is_batching_effect = previously_batching_effect ;
136139 if ( last_inspected_signal !== null ) {
You can’t perform that action at this time.
0 commit comments