@@ -3561,6 +3561,34 @@ pub mod WebAssembly {
3561
3561
pub fn set ( this : & Table , index : u32 , function : & Function ) -> Result < ( ) , JsValue > ;
3562
3562
}
3563
3563
3564
+ // WebAssembly.Global
3565
+ #[ wasm_bindgen]
3566
+ extern "C" {
3567
+ /// The `WebAssembly.Global()` constructor creates a new `Global` object
3568
+ /// of the given type and value.
3569
+ ///
3570
+ /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global)
3571
+ #[ wasm_bindgen( js_namespace = WebAssembly , extends = Object , typescript_type = "WebAssembly.Global" ) ]
3572
+ #[ derive( Clone , Debug , PartialEq , Eq ) ]
3573
+ pub type Global ;
3574
+
3575
+ /// The `WebAssembly.Global()` constructor creates a new `Global` object
3576
+ /// of the given type and value.
3577
+ ///
3578
+ /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global)
3579
+ #[ wasm_bindgen( constructor, js_namespace = WebAssembly , catch) ]
3580
+ pub fn new ( global_descriptor : & Object , value : & JsValue ) -> Result < Global , JsValue > ;
3581
+
3582
+ /// The value prototype property of the `WebAssembly.Global` object
3583
+ /// returns the value of the global.
3584
+ ///
3585
+ /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global)
3586
+ #[ wasm_bindgen( method, getter, structural, js_namespace = WebAssembly ) ]
3587
+ pub fn value ( this : & Global ) -> JsValue ;
3588
+ #[ wasm_bindgen( method, setter = value, structural, js_namespace = WebAssembly ) ]
3589
+ pub fn set_value ( this : & Global , value : & JsValue ) ;
3590
+ }
3591
+
3564
3592
// WebAssembly.Memory
3565
3593
#[ wasm_bindgen]
3566
3594
extern "C" {
0 commit comments