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

It is possible to modify hidden object's value using extend #2532

Closed
Oldes opened this issue Jan 30, 2023 · 0 comments
Closed

It is possible to modify hidden object's value using extend #2532

Oldes opened this issue Jan 30, 2023 · 0 comments
Labels
Oldes.resolved Bugs/wishes with Oldes' fixes/features Protection Test.written Type.bug

Comments

@Oldes
Copy link
Owner

Oldes commented Jan 30, 2023

Example code:

obj: object [
    a: 1
    protect/hide 'a
    test: does [a]
]
obj/test == 1 ;- OK
extend obj 'a 2
obj/test == 2 ;- BAD, the hidden value was modified!

This is a regression related to #1140

@Oldes Oldes added Test.written Oldes.resolved Bugs/wishes with Oldes' fixes/features labels Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Oldes.resolved Bugs/wishes with Oldes' fixes/features Protection Test.written Type.bug
Projects
None yet
Development

No branches or pull requests

1 participant