mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 05:10:57 +00:00 
			
		
		
		
	
		
			
	
	
		
			25 lines
		
	
	
	
		
			559 B
		
	
	
	
		
			Text
		
	
	
	
	
	
		
		
			
		
	
	
			25 lines
		
	
	
	
		
			559 B
		
	
	
	
		
			Text
		
	
	
	
	
	
|   | // https://webassembly.github.io/spec/js-api/#enumdef-valuetype | ||
|  | enum ValueType { | ||
|  |     "i32", | ||
|  |     "i64", | ||
|  |     "f32", | ||
|  |     "f64", | ||
|  |     "v128", | ||
|  |     "externref", | ||
|  |     "anyfunc", | ||
|  | }; | ||
|  | 
 | ||
|  | // https://webassembly.github.io/spec/js-api/#dictdef-globaldescriptor | ||
|  | dictionary GlobalDescriptor { | ||
|  |     required ValueType value; | ||
|  |     boolean mutable = false; | ||
|  | }; | ||
|  | 
 | ||
|  | // https://webassembly.github.io/spec/js-api/#global | ||
|  | [LegacyNamespace=WebAssembly, Exposed=*] | ||
|  | interface Global { | ||
|  |     constructor(GlobalDescriptor descriptor, optional any v); | ||
|  |     any valueOf(); | ||
|  |     attribute any value; | ||
|  | }; |