mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
7f90b0cab7
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>
|