Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-enumerable properties are not observable #30

Open
aleclarson opened this issue Aug 22, 2020 · 0 comments
Open

Non-enumerable properties are not observable #30

aleclarson opened this issue Aug 22, 2020 · 0 comments
Labels
limitation Design limitations (or JavaScript itself) are to blame

Comments

@aleclarson
Copy link
Collaborator

const data = o({})
Object.defineProperty(data, 'a', { value: 1 })

auto(() => console.log('a =', data.a))

// Change is not observed.
data.a = 2
@aleclarson aleclarson added the limitation Design limitations (or JavaScript itself) are to blame label Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
limitation Design limitations (or JavaScript itself) are to blame
Projects
None yet
Development

No branches or pull requests

1 participant