mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:52:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			655 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			655 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         let controller;
 | |
|         new ReadableStream(
 | |
|             {
 | |
|                 start(c) {
 | |
|                     controller = c;
 | |
|                 }
 | |
|             },
 | |
|             new ByteLengthQueuingStrategy({ highWaterMark: 5 })
 | |
|         );
 | |
| 
 | |
|         println(controller.desiredSize);
 | |
|         controller.enqueue(new Uint8Array([1, 2, 3]));
 | |
|         println(controller.desiredSize);
 | |
|         controller.enqueue(new Uint8Array([1, 2, 3, 4, 5, 6, 7]));
 | |
|         println(controller.desiredSize);
 | |
|         controller.enqueue(new Uint8Array([1]));
 | |
|         println(controller.desiredSize);
 | |
|     });
 | |
| </script>
 | 
