Fix the no_modules example by fixing --browser

Recent refactorings forgot a case of emitting code for
`cachedTextDecoder`!
This commit is contained in:
Alex Crichton
2018-10-03 15:54:57 -07:00
parent 84bda02bbf
commit 3f357f46eb
2 changed files with 5 additions and 1 deletions

View File

@ -1088,6 +1088,8 @@ impl<'a> Context<'a> {
", s)
);
self.global(&format!("let cached{0} = new l{0}('utf-8');", s));
} else {
self.global(&format!("let cached{0} = new {0}('utf-8');", s));
}
}