|
|
@ -31,7 +31,7 @@ import {
|
|
|
|
} from '#client/constants';
|
|
|
|
} from '#client/constants';
|
|
|
|
import * as e from '../errors.js';
|
|
|
|
import * as e from '../errors.js';
|
|
|
|
import { legacy_mode_flag, tracing_mode_flag } from '../../flags/index.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 { component_context, is_runes } from '../context.js';
|
|
|
|
import { proxy } from '../proxy.js';
|
|
|
|
import { proxy } from '../proxy.js';
|
|
|
|
import { execute_derived } from './deriveds.js';
|
|
|
|
import { execute_derived } from './deriveds.js';
|
|
|
@ -139,7 +139,11 @@ export function set(source, value, should_proxy = false) {
|
|
|
|
e.state_unsafe_mutation();
|
|
|
|
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);
|
|
|
|
return internal_set(source, new_value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|