mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +00:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
	
		
			642 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
	
		
			642 B
		
	
	
	
		
			Text
		
	
	
	
	
	
|   | enum TableKind { | ||
|  |     "externref", | ||
|  |     "anyfunc" | ||
|  | }; | ||
|  | 
 | ||
|  | dictionary TableDescriptor { | ||
|  |     required TableKind element; | ||
|  |     required [EnforceRange] unsigned long initial; | ||
|  |     [EnforceRange] unsigned long maximum; | ||
|  | }; | ||
|  | 
 | ||
|  | // https://webassembly.github.io/spec/js-api/#tables | ||
|  | [LegacyNamespace=WebAssembly, Exposed=*] | ||
|  | interface Table { | ||
|  |     constructor(TableDescriptor descriptor, optional any value); | ||
|  | 
 | ||
|  |     unsigned long grow([EnforceRange] unsigned long delta, optional any value); | ||
|  | 
 | ||
|  |     any get([EnforceRange] unsigned long index); | ||
|  |     undefined set([EnforceRange] unsigned long index, optional any value); | ||
|  | 
 | ||
|  |     readonly attribute unsigned long length; | ||
|  | }; |