Merge pull request #927 from alexcrichton/fix-browser

Fix the `no_modules` example by fixing `--browser`
This commit is contained in:
Nick Fitzgerald
2018-10-03 16:34:31 -07:00
committed by GitHub
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));
}
}