]> Repositorios git - scryer-prolog.git/commitdiff
MachineBuilder constructor
authorbakaq <[email protected]>
Thu, 20 Feb 2025 01:50:41 +0000 (22:50 -0300)
committerbakaq <[email protected]>
Thu, 20 Feb 2025 04:04:38 +0000 (01:04 -0300)
src/wasm.rs

index d08e18603bb42b4b28b957e57d5209c7af5fb110..758d7a6abca74a6dd4df57f7d5c8ece1c36ca921 100644 (file)
@@ -19,6 +19,7 @@ pub struct WasmMachineBuilder {
 
 #[wasm_bindgen(js_class = MachineBuilder)]
 impl WasmMachineBuilder {
+    #[wasm_bindgen(constructor)]
     pub fn new() -> Self {
         Default::default()
     }