mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:34:59 +00:00

Generated iterator prototypes already have the IteratorPrototype as
their prototype, but we were incorrectly hijacking them and rerouting
to ObjectPrototype.
Regressed in cfe663435e
.
13 lines
462 B
HTML
13 lines
462 B
HTML
<script src="include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let u = new URLSearchParams();
|
|
let iterator = u[Symbol.iterator]();
|
|
println(iterator);
|
|
println(iterator[Symbol.iterator]());
|
|
println(iterator === iterator[Symbol.iterator]());
|
|
println(iterator[Symbol.iterator].call("hello"));
|
|
println(iterator[Symbol.iterator].call(1));
|
|
println(iterator[Symbol.iterator].call(window));
|
|
});
|
|
</script>
|