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

aMap.readOnlyView() shares state, right? #9

Open
dckc opened this issue Feb 9, 2023 · 1 comment
Open

aMap.readOnlyView() shares state, right? #9

dckc opened this issue Feb 9, 2023 · 1 comment
Assignees

Comments

@dckc
Copy link

dckc commented Feb 9, 2023

I don't see much about how readOnlyView on Map works.

readOnlyView() :ReadOnlyMap(); // necessarily fresh

Which part of the spec tells us that...

const m  = new Map();
const ro = m.readOnlyView();
m.set('a', 1);
ro.get('a')

... completes with 1?

@erights
Copy link
Collaborator

erights commented Feb 19, 2023

yes

@erights erights self-assigned this Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants