@@ -53,11 +53,11 @@ function create_fragment(ctx) {
5353 div7 = element ( "div" ) ;
5454 t7 = space ( ) ;
5555 div8 = element ( "div" ) ;
56- toggle_class ( div0 , "update1 " , reactiveModuleVar ) ;
57- toggle_class ( div1 , "update2" , /*reactiveConst*/ ctx [ 0 ] . x ) ;
58- toggle_class ( div2 , "update3 " , nonReactiveGlobal && /*reactiveConst */ ctx [ 0 ] . x ) ;
59- toggle_class ( div3 , "update4 " , /*$reactiveStoreVal */ ctx [ 2 ] ) ;
60- toggle_class ( div4 , "update5 " , /*$reactiveDeclaration*/ ctx [ 3 ] ) ;
56+ toggle_class ( div0 , "update2 " , /*reactiveConst*/ ctx [ 0 ] . x ) ;
57+ toggle_class ( div1 , "update3" , nonReactiveGlobal && /*reactiveConst*/ ctx [ 0 ] . x ) ;
58+ toggle_class ( div2 , "update4 " , /*$reactiveStoreVal */ ctx [ 2 ] ) ;
59+ toggle_class ( div3 , "update5 " , /*$reactiveDeclaration */ ctx [ 3 ] ) ;
60+ toggle_class ( div4 , "update1 " , reassignedModuleVar ) ;
6161 toggle_class ( div5 , "static1" , nonReactiveModuleVar ) ;
6262 toggle_class ( div6 , "static2" , nonReactiveGlobal ) ;
6363 toggle_class ( div7 , "static3" , nonReactiveModuleVar && nonReactiveGlobal ) ;
@@ -83,24 +83,20 @@ function create_fragment(ctx) {
8383 insert ( target , div8 , anchor ) ;
8484 } ,
8585 p ( ctx , [ dirty ] ) {
86- if ( dirty & /*reactiveModuleVar*/ 0 ) {
87- toggle_class ( div0 , "update1" , reactiveModuleVar ) ;
88- }
89-
9086 if ( dirty & /*reactiveConst*/ 1 ) {
91- toggle_class ( div1 , "update2" , /*reactiveConst*/ ctx [ 0 ] . x ) ;
87+ toggle_class ( div0 , "update2" , /*reactiveConst*/ ctx [ 0 ] . x ) ;
9288 }
9389
9490 if ( dirty & /*nonReactiveGlobal, reactiveConst*/ 1 ) {
95- toggle_class ( div2 , "update3" , nonReactiveGlobal && /*reactiveConst*/ ctx [ 0 ] . x ) ;
91+ toggle_class ( div1 , "update3" , nonReactiveGlobal && /*reactiveConst*/ ctx [ 0 ] . x ) ;
9692 }
9793
9894 if ( dirty & /*$reactiveStoreVal*/ 4 ) {
99- toggle_class ( div3 , "update4" , /*$reactiveStoreVal*/ ctx [ 2 ] ) ;
95+ toggle_class ( div2 , "update4" , /*$reactiveStoreVal*/ ctx [ 2 ] ) ;
10096 }
10197
10298 if ( dirty & /*$reactiveDeclaration*/ 8 ) {
103- toggle_class ( div4 , "update5" , /*$reactiveDeclaration*/ ctx [ 3 ] ) ;
99+ toggle_class ( div3 , "update5" , /*$reactiveDeclaration*/ ctx [ 3 ] ) ;
104100 }
105101 } ,
106102 i : noop ,
@@ -130,7 +126,7 @@ function create_fragment(ctx) {
130126}
131127
132128let nonReactiveModuleVar = Math . random ( ) ;
133- let reactiveModuleVar = Math . random ( ) ;
129+ let reassignedModuleVar = Math . random ( ) ;
134130
135131function instance ( $$self , $$props , $$invalidate ) {
136132 let reactiveDeclaration ;
@@ -144,13 +140,13 @@ function instance($$self, $$props, $$invalidate) {
144140 $$self . $$ . on_destroy . push ( ( ) => $$unsubscribe_reactiveDeclaration ( ) ) ;
145141 nonReactiveGlobal = Math . random ( ) ;
146142 const reactiveConst = { x : Math . random ( ) } ;
147- reactiveModuleVar += 1 ;
143+ reassignedModuleVar += 1 ;
148144
149145 if ( Math . random ( ) ) {
150146 reactiveConst . x += 1 ;
151147 }
152148
153- $: $$subscribe_reactiveDeclaration ( $$invalidate ( 1 , reactiveDeclaration = reactiveModuleVar * 2 ) ) ;
149+ $: $$subscribe_reactiveDeclaration ( $$invalidate ( 1 , reactiveDeclaration = reassignedModuleVar * 2 ) ) ;
154150 return [ reactiveConst , reactiveDeclaration , $reactiveStoreVal , $reactiveDeclaration ] ;
155151}
156152
0 commit comments