@@ -110,10 +110,7 @@ export function proxy(value, path) {
110110 if ( s === undefined ) {
111111 if ( prop in target ) {
112112 const s = with_parent ( ( ) => source ( UNINITIALIZED , stack ) ) ;
113- sources . set (
114- prop ,
115- DEV && typeof prop === 'string' ? tag_source ( s , to_trace_name ( prop ) ) : s
116- ) ;
113+ sources . set ( prop , DEV ? tag_source ( s , to_trace_name ( prop ) ) : s ) ;
117114 update_version ( version ) ;
118115 }
119116 } else {
@@ -147,7 +144,7 @@ export function proxy(value, path) {
147144 s = with_parent ( ( ) =>
148145 source ( proxy ( exists ? target [ prop ] : UNINITIALIZED , to_trace_name ( prop ) ) , stack )
149146 ) ;
150- s = DEV && typeof prop === 'string' ? tag_source ( s , to_trace_name ( prop ) ) : s ;
147+ s = DEV ? tag_source ( s , to_trace_name ( prop ) ) : s ;
151148 sources . set ( prop , s ) ;
152149 }
153150
@@ -198,7 +195,7 @@ export function proxy(value, path) {
198195 s = with_parent ( ( ) =>
199196 source ( has ? proxy ( target [ prop ] , to_trace_name ( prop ) ) : UNINITIALIZED , stack )
200197 ) ;
201- s = DEV && typeof prop === 'string' ? tag_source ( s , to_trace_name ( prop ) ) : s ;
198+ s = DEV ? tag_source ( s , to_trace_name ( prop ) ) : s ;
202199 sources . set ( prop , s ) ;
203200 }
204201
@@ -239,7 +236,7 @@ export function proxy(value, path) {
239236 if ( s === undefined ) {
240237 if ( ! has || get_descriptor ( target , prop ) ?. writable ) {
241238 s = with_parent ( ( ) => source ( undefined , stack ) ) ;
242- s = DEV && typeof prop === 'string' ? tag_source ( s , to_trace_name ( prop ) ) : s ;
239+ s = DEV ? tag_source ( s , to_trace_name ( prop ) ) : s ;
243240 set (
244241 s ,
245242 with_parent ( ( ) => proxy ( value , to_trace_name ( prop ) ) )
0 commit comments