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

Function hasSetupBinding

packages/runtime-core/src/componentPublicInstance.ts:406–407  ·  view source on GitHub ↗
(state: Data, key: string)

Source from the content-addressed store, hash-verified

404 key === '_' || key === '$'
405
406const hasSetupBinding = (state: Data, key: string) =>
407 state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key)
408
409export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
410 get({ _: instance }: ComponentRenderContext, key: string) {

Callers 3

getFunction · 0.85
setFunction · 0.85
hasFunction · 0.85

Calls 1

hasOwnFunction · 0.90

Tested by

no test coverage detected