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

Method set

packages/reactivity/src/baseHandlers.ts:230–238  ·  view source on GitHub ↗
(target: object, key: string | symbol)

Source from the content-addressed store, hash-verified

228 }
229
230 set(target: object, key: string | symbol) {
231 if (__DEV__) {
232 warn(
233 `Set operation on key "${String(key)}" failed: target is readonly.`,
234 target,
235 )
236 }
237 return true
238 }
239
240 deleteProperty(target: object, key: string | symbol) {
241 if (__DEV__) {

Callers

nothing calls this directly

Calls 2

warnFunction · 0.90
StringInterface · 0.85

Tested by

no test coverage detected