proposal-record-tuple icon indicating copy to clipboard operation
proposal-record-tuple copied to clipboard

Forbid hosts creating an impossible records/tuples

Open Jamesernator opened this issue 3 years ago • 0 comments

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.

Jamesernator avatar Nov 16 '22 23:11 Jamesernator