Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Vue watchers calling defineProperty #225

Open
FuriousLlama opened this issue Sep 24, 2020 · 0 comments
Open

Vue watchers calling defineProperty #225

FuriousLlama opened this issue Sep 24, 2020 · 0 comments

Comments

@FuriousLlama
Copy link

If the storage is part of a reactive component the watchers could (and do sometimes) call the defineProperty method of the ProxyHandler internal to the storage. Said watchers can call it without a value parameter of the attributes object setting all the internal storage to undefined.

Section of code with the issue:

defineProperty(
        target: LaLaCookieStorage,
        p: PropertyKey,
        attributes: PropertyDescriptor
    ): boolean {
        target.setItem(p.toString(), String(attributes.value));
        return true;
    },
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant