File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export let tracing_expressions = null;
14
14
* @param {Error[] } [traces]
15
15
*/
16
16
function log_entry ( signal , traces = [ ] ) {
17
- const debug = signal . debug ;
17
+ const debug = signal . trace ;
18
18
const value = signal . trace_need_increase ? signal . trace_v : signal . v ;
19
19
20
20
if ( value === UNINITIALIZED ) {
Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ function create_item(
527
527
if ( DEV && reactive ) {
528
528
// For tracing purposes, we need to link the source signal we create with the
529
529
// collection + index so that tracing works as intended
530
- /** @type {Value } */ ( v ) . debug = ( ) => {
530
+ /** @type {Value } */ ( v ) . trace = ( ) => {
531
531
var collection_index = typeof i === 'number' ? index : i . v ;
532
532
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
533
533
get_collection ( ) [ collection_index ] ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export function source(v, stack) {
66
66
67
67
if ( DEV && tracing_mode_flag ) {
68
68
signal . created = stack ?? get_stack ( 'CreatedAt' ) ;
69
- signal . debug = null ;
69
+ signal . trace = null ;
70
70
}
71
71
72
72
return signal ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export interface Value<V = unknown> extends Signal {
22
22
trace_need_increase ?: boolean ;
23
23
trace_v ?: V ;
24
24
label ?: string ;
25
- debug ?: null | ( ( ) => void ) ;
25
+ trace ?: null | ( ( ) => void ) ;
26
26
}
27
27
28
28
export interface Reaction extends Signal {
Original file line number Diff line number Diff line change @@ -780,8 +780,8 @@ export function get(signal) {
780
780
tracing_expressions . reaction === active_reaction
781
781
) {
782
782
// Used when mapping state between special blocks like `each`
783
- if ( signal . debug ) {
784
- signal . debug ( ) ;
783
+ if ( signal . trace ) {
784
+ signal . trace ( ) ;
785
785
} else {
786
786
var trace = get_stack ( 'TracedAt' ) ;
787
787
You can’t perform that action at this time.
0 commit comments