mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:22:46 +00:00 
			
		
		
		
	 7f90b0cab7
			
		
	
	
		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>
 |