Skip to content

Commit 4e6e8a4

Browse files
committed
tweak
1 parent 1d64512 commit 4e6e8a4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/svelte/src/internal/client/dev/tracing.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function log_entry(signal, entry) {
4343
const type = (signal.f & DERIVED) !== 0 ? '$derived' : '$state';
4444
const current_reaction = /** @type {Reaction} */ (active_reaction);
4545
const dirty = signal.wv > current_reaction.wv || current_reaction.wv === 0;
46-
const { trace_name: name } = signal;
46+
const { label: name } = signal;
4747
const style = dirty
4848
? 'color: CornflowerBlue; font-weight: bold'
4949
: 'color: grey; font-weight: normal';
@@ -183,10 +183,10 @@ export function get_stack(label) {
183183

184184
/**
185185
* @param {Value} source
186-
* @param {string} name
186+
* @param {string} label
187187
*/
188-
export function tag(source, name) {
189-
source.trace_name = name;
188+
export function tag(source, label) {
189+
source.label = label;
190190
return source;
191191
}
192192

packages/svelte/src/internal/client/reactivity/sources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function set(source, value, should_proxy = false) {
139139
e.state_unsafe_mutation();
140140
}
141141

142-
let new_value = should_proxy ? proxy(value, DEV ? source.trace_name : undefined) : value;
142+
let new_value = should_proxy ? proxy(value, DEV ? source.label : undefined) : value;
143143

144144
return internal_set(source, new_value);
145145
}

packages/svelte/src/internal/client/reactivity/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface Value<V = unknown> extends Signal {
2121
updated?: Error | null;
2222
trace_need_increase?: boolean;
2323
trace_v?: V;
24-
trace_name?: string;
24+
label?: string;
2525
debug?: null | (() => void);
2626
}
2727

0 commit comments

Comments
 (0)