mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-10 19:41:25 +00:00
add missed out TextEncoder
This commit is contained in:
@ -655,7 +655,7 @@ impl<'a> Context<'a> {
|
||||
}
|
||||
if self.config.nodejs {
|
||||
self.globals.push_str(&format!("
|
||||
const TextEncoder = require('util');
|
||||
const TextEncoder = require('util').TextEncoder;
|
||||
"));
|
||||
} else if !self.config.browser {
|
||||
self.globals.push_str(&format!("
|
||||
|
Reference in New Issue
Block a user