Change ScriptFnMetadata to hold references.

This commit is contained in:
Stephen Chung
2020-12-18 16:31:44 +08:00
parent 719f0babbf
commit 882b26d2a1
4 changed files with 44 additions and 35 deletions

View File

@@ -868,7 +868,7 @@ pub fn optimize_into_ast(
lib: None,
#[cfg(not(feature = "no_module"))]
mods: Default::default(),
fn_comments: Default::default(),
comments: Default::default(),
})
.for_each(|fn_def| {
lib2.set_script_fn(fn_def);