pull/16126/head
Rich Harris 3 months ago
parent 4e6e8a4590
commit d2487f81b5

@ -31,7 +31,7 @@ import {
} from '#client/constants';
import * as e from '../errors.js';
import { legacy_mode_flag, tracing_mode_flag } from '../../flags/index.js';
import { get_stack } from '../dev/tracing.js';
import { get_stack, tag_proxy } from '../dev/tracing.js';
import { component_context, is_runes } from '../context.js';
import { proxy } from '../proxy.js';
import { execute_derived } from './deriveds.js';
@ -139,7 +139,11 @@ export function set(source, value, should_proxy = false) {
e.state_unsafe_mutation();
}
let new_value = should_proxy ? proxy(value, DEV ? source.label : undefined) : value;
let new_value = should_proxy ? proxy(value) : value;
if (DEV && should_proxy) {
tag_proxy(new_value, /** @type {string} */ (source.label));
}
return internal_set(source, new_value);
}

Loading…
Cancel
Save