File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,9 @@ intrinsics! {
243
243
#[ symbol = "__wbindgen_memory" ]
244
244
#[ signature = fn ( ) -> Externref ]
245
245
Memory ,
246
+ #[ symbol = "__wbindgen_exports" ]
247
+ #[ signature = fn ( ) -> Externref ]
248
+ Exports ,
246
249
#[ symbol = "__wbindgen_module" ]
247
250
#[ signature = fn ( ) -> Externref ]
248
251
Module ,
Original file line number Diff line number Diff line change @@ -3535,6 +3535,11 @@ impl<'a> Context<'a> {
3535
3535
format ! ( "__wbg_init.__wbindgen_wasm_module" )
3536
3536
}
3537
3537
3538
+ Intrinsic :: Exports => {
3539
+ assert_eq ! ( args. len( ) , 0 ) ;
3540
+ "wasm" . to_string ( )
3541
+ }
3542
+
3538
3543
Intrinsic :: Memory => {
3539
3544
assert_eq ! ( args. len( ) , 0 ) ;
3540
3545
let mut memories = self . module . memories . iter ( ) ;
Original file line number Diff line number Diff line change @@ -1082,6 +1082,7 @@ externs! {
1082
1082
1083
1083
fn __wbindgen_not( idx: u32 ) -> u32 ;
1084
1084
1085
+ fn __wbindgen_exports( ) -> u32 ;
1085
1086
fn __wbindgen_memory( ) -> u32 ;
1086
1087
fn __wbindgen_module( ) -> u32 ;
1087
1088
fn __wbindgen_function_table( ) -> u32 ;
@@ -1358,6 +1359,11 @@ pub fn module() -> JsValue {
1358
1359
unsafe { JsValue :: _new ( __wbindgen_module ( ) ) }
1359
1360
}
1360
1361
1362
+ /// Returns a handle to this wasm instance's `WebAssembly.Instance.prototype.exports`
1363
+ pub fn exports ( ) -> JsValue {
1364
+ unsafe { JsValue :: _new ( __wbindgen_exports ( ) ) }
1365
+ }
1366
+
1361
1367
/// Returns a handle to this wasm instance's `WebAssembly.Memory`
1362
1368
pub fn memory ( ) -> JsValue {
1363
1369
unsafe { JsValue :: _new ( __wbindgen_memory ( ) ) }
You can’t perform that action at this time.
0 commit comments