File tree Expand file tree Collapse file tree
crates/js-component-bindgen/src/intrinsics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -358,11 +358,15 @@ impl Intrinsic {
358358
359359 Intrinsic :: WebIdl ( w) => w. render ( output) ,
360360
361- Intrinsic :: HandleTables => output. push_str (
362- "
363- const handleTables = [];
364- " ,
365- ) ,
361+ Intrinsic :: HandleTables => {
362+ let var_name = self . name ( ) ;
363+ uwriteln ! (
364+ output,
365+ r#"
366+ const {var_name} = [];
367+ "# ,
368+ ) ;
369+ }
366370
367371 Intrinsic :: HasOwnProperty => output. push_str (
368372 "
@@ -1640,7 +1644,7 @@ impl Intrinsic {
16401644 "fetchCompile" ,
16411645 "finalizationRegistryCreate" ,
16421646 "getErrorPayload" ,
1643- "handleTables " ,
1647+ "HANDLE_TABLES " ,
16441648 "hasOwnProperty" ,
16451649 "imports" ,
16461650 "instantiateCore" ,
@@ -1707,7 +1711,7 @@ impl Intrinsic {
17071711 Intrinsic :: FinalizationRegistryCreate => "finalizationRegistryCreate" ,
17081712 Intrinsic :: GetErrorPayload => "getErrorPayload" ,
17091713 Intrinsic :: GetErrorPayloadString => "getErrorPayloadString" ,
1710- Intrinsic :: HandleTables => "handleTables " ,
1714+ Intrinsic :: HandleTables => "HANDLE_TABLES " ,
17111715 Intrinsic :: HasOwnProperty => "hasOwnProperty" ,
17121716 Intrinsic :: InstantiateCore => "instantiateCore" ,
17131717 Intrinsic :: IsLE => "isLE" ,
You can’t perform that action at this time.
0 commit comments