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 @@ -252,6 +252,9 @@ intrinsics! {
252
252
#[ symbol = "__wbindgen_memory" ]
253
253
#[ signature = fn ( ) -> Externref ]
254
254
Memory ,
255
+ #[ symbol = "__wbindgen_exports" ]
256
+ #[ signature = fn ( ) -> Externref ]
257
+ Exports ,
255
258
#[ symbol = "__wbindgen_module" ]
256
259
#[ signature = fn ( ) -> Externref ]
257
260
Module ,
Original file line number Diff line number Diff line change @@ -3498,6 +3498,11 @@ impl<'a> Context<'a> {
3498
3498
format ! ( "init.__wbindgen_wasm_module" )
3499
3499
}
3500
3500
3501
+ Intrinsic :: Exports => {
3502
+ assert_eq ! ( args. len( ) , 0 ) ;
3503
+ "wasm" . to_string ( )
3504
+ }
3505
+
3501
3506
Intrinsic :: Memory => {
3502
3507
assert_eq ! ( args. len( ) , 0 ) ;
3503
3508
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