mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:32:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			402 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			402 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         const INVALID_STATE_ERR = 11;
 | |
|         try {
 | |
|             const xhr = new XMLHttpRequest();
 | |
|             xhr.open("GET", "data:text/plain,", true);
 | |
|             xhr.send();
 | |
|             xhr.send();
 | |
|         }
 | |
|         catch (e) {
 | |
|             if (e.code === INVALID_STATE_ERR)
 | |
|                 println("PASS");
 | |
|         }
 | |
|     });
 | |
| </script>
 | 
