mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +03:00
fix(es/testing): Ensure that we call fold_program
(#7222)
This commit is contained in:
parent
68751600ae
commit
e241201bf7
@ -177,11 +177,11 @@ impl<'a> Tester<'a> {
|
||||
res?
|
||||
};
|
||||
|
||||
let module = module
|
||||
let module = Program::Module(module)
|
||||
.fold_with(&mut tr)
|
||||
.fold_with(&mut as_folder(Normalizer));
|
||||
|
||||
Ok(module)
|
||||
Ok(module.expect_module())
|
||||
}
|
||||
|
||||
pub fn print(&mut self, module: &Module, comments: &Rc<SingleThreadedComments>) -> String {
|
||||
|
Loading…
Reference in New Issue
Block a user