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

Forbid hosts creating an impossible records/tuples #365

Open
Jamesernator opened this issue Nov 16, 2022 · 0 comments
Open

Forbid hosts creating an impossible records/tuples #365

Jamesernator opened this issue Nov 16, 2022 · 0 comments

Comments

@Jamesernator
Copy link

Jamesernator commented Nov 16, 2022

Due to their immutable nature, cyclic records/tuples are not possible, i.e. things like this should never be able to be true:

tuple === tuple[0];
record === record.prop;
record.tuple[0] === record;

It would probably be worth adding a constraint in the spec forbidding hosts from ever providing a tuple/record that is otherwise impossible to create via JS code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant