07:26
<Andreu Botella>

hey, I noticed that according to the spec, this code should throw because array iterators are defined using a generator, and reentering a generator should throw:

const array = [,,];
const iterator = array.entries();
Object.defineProperty(array, "0", {get: () => iterator.next()});
console.log(iterator.next());
07:26
<Andreu Botella>
but it seems like none of the major engines do that
10:07
<snek>
engine262 throws :)
12:04
<bakkot>
Andreu Botella: https://github.com/tc39/ecma262/issues/3136
12:04
<bakkot>
we haven't gotten around to fixing this but it's a known issue
12:04
<bakkot>
(with the spec, not with engines)