Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 23, 2024
1 parent b8b8661 commit 69ff59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_typescript/examples/ts_to_js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ fn main() {
// Ensure that we have enough parenthesis.
let program = module.fold_with(&mut fixer(Some(&comments)));

println!("{}", to_code_default(cm, Some(&comments), program));
println!("{}", to_code_default(cm, Some(&comments), &program));
})
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn identity(entry: PathBuf) {
Err(_) => return Ok(()),
};

to_code_default(cm.clone(), None, program)
to_code_default(cm.clone(), None, &program)
};

println!("---------------- JS ----------------\n\n{}", js_content);
Expand Down

0 comments on commit 69ff59a

Please sign in to comment.