mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:22:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			642 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			23 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;
 | |
| };
 | 
