MCPcopy
hub / github.com/vuejs/core / set

Function set

packages/runtime-core/src/compat/global.ts:664–667  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

662 return val
663 },
664 set(newVal) {
665 val = isObject(newVal) ? reactive(newVal) : newVal
666 trigger(obj, TriggerOpTypes.SET, key, newVal)
667 },
668 })
669}

Callers

nothing calls this directly

Calls 3

isObjectFunction · 0.90
reactiveFunction · 0.90
triggerFunction · 0.90

Tested by

no test coverage detected