expect('$foobar' in instanceProxy).toBe(false)
expect('baz' in instanceProxy).toBe(false)
+ // #4962 triggering getter should not cause non-existent property to
+ // pass the has check
+ instanceProxy.baz
+ expect('baz' in instanceProxy).toBe(false)
+
// set non-existent (goes into proxyTarget sink)
instanceProxy.baz = 1
expect('baz' in instanceProxy).toBe(true)
}
const enum AccessTypes {
+ OTHER,
SETUP,
DATA,
PROPS,
- CONTEXT,
- OTHER
+ CONTEXT
}
export interface ComponentRenderContext {
) {
let normalizedProps
return (
- accessCache![key] !== undefined ||
+ !!accessCache![key] ||
(data !== EMPTY_OBJ && hasOwn(data, key)) ||
(setupState !== EMPTY_OBJ && hasOwn(setupState, key)) ||
((normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key)) ||