mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-30 02:22:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			512 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			512 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/EventTarget.idl>
 | |
| #import <DOM/EventHandler.idl>
 | |
| 
 | |
| [Exposed=(Window), UseNewAKString]
 | |
| interface Worker : EventTarget {
 | |
|     constructor(DOMString scriptURL, optional WorkerOptions options = {});
 | |
| 
 | |
|     undefined terminate();
 | |
|     undefined postMessage(any message, optional any transfer);
 | |
| 
 | |
|     attribute EventHandler onmessage;
 | |
|     attribute EventHandler onmessageerror;
 | |
| };
 | |
| 
 | |
| dictionary WorkerOptions {
 | |
|     USVString type = "classic";
 | |
|     USVString credentials = "same-origin";
 | |
|     DOMString name = "";
 | |
| };
 | 
