mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:22:43 +00:00 
			
		
		
		
	 0e3fb39a0a
			
		
	
	
		0e3fb39a0a
		
	
	
	
	
		
			
			Previously this was compiled to require an object despite the IDL file specifying 'optional'. This commit makes IDLGenerator respect this modifier, and fixes the only affected instance.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			374 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			374 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         try {
 | |
|             let decoder = new TextDecoder("utf-8");
 | |
|             println(`[${decoder.decode(new Uint8Array([0x41, 0x42, 0x43]))}]`); // "ABC"
 | |
|             println(`[${decoder.decode()}]`);
 | |
|         } catch(e) {
 | |
|             println("ERROR: " + e.name + ": " + e.message);
 | |
|         }
 | |
|     });
 | |
| </script>
 |