Skip to content

Commit

Permalink
fix: dispose definition value (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Nov 6, 2023
1 parent b8f32cf commit 8ddac94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/js-component-bindgen/src/function_bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ impl Bindgen for FunctionBindgen<'_> {
uwriteln!(
self.src,
"finalizationRegistry{id}.register({rsc}, {handle}, {rsc});
Object.defineProperty({rsc}, {symbol_dispose}, function () {{{}}});
Object.defineProperty({rsc}, {symbol_dispose}, {{ writable: true, value: function () {{{}}} }});
",
match dtor_name {
Some(dtor) => format!("
Expand Down

0 comments on commit 8ddac94

Please sign in to comment.