MCPcopy
hub / github.com/sveltejs/svelte / set

Function set

packages/svelte/src/internal/client/reactivity/props.js:59–66  ·  view source on GitHub ↗
(target, key)

Source from the content-addressed store, hash-verified

57 return target.props[key];
58 },
59 set(target, key) {
60 if (DEV) {
61 // TODO should this happen in prod too?
62 e.props_rest_readonly(`${target.name}.${String(key)}`);
63 }
64
65 return false;
66 },
67 getOwnPropertyDescriptor(target, key) {
68 if (target.exclude.has(key)) return;
69 if (key in target.props) {

Callers 2

propFunction · 0.90
store_getFunction · 0.90

Calls 5

set_active_effectFunction · 0.90
updateFunction · 0.90
is_functionFunction · 0.90
propFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected