add missed out TextEncoder

This commit is contained in:
Sendil Kumar 2018-04-04 11:22:13 +02:00
parent 6d5afbb3d2
commit 9421edaab5

View File

@ -655,7 +655,7 @@ impl<'a> Context<'a> {
} }
if self.config.nodejs { if self.config.nodejs {
self.globals.push_str(&format!(" self.globals.push_str(&format!("
const TextEncoder = require('util'); const TextEncoder = require('util').TextEncoder;
")); "));
} else if !self.config.browser { } else if !self.config.browser {
self.globals.push_str(&format!(" self.globals.push_str(&format!("