Skip to content

Commit d7fdc5c

Browse files
committed
Fix typescript hack
1 parent 36997e1 commit d7fdc5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wasm/lib/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use rustpython_vm::VirtualMachine;
1212
use wasm_bindgen::{prelude::*, JsCast};
1313

1414
// Hack to comment out wasm-bindgen's typescript definitons
15+
#[wasm_bindgen(typescript_custom_section)]
1516
const TS_CMT_START: &'static str = "/*";
1617

1718
fn py_str_err(vm: &mut VirtualMachine, py_err: &PyObjectRef) -> String {

0 commit comments

Comments
 (0)