diff --git a/lib/wasm/wasm_exec.js b/lib/wasm/wasm_exec.js index d71af9e97e8ca9..11ac5a07cdf030 100644 --- a/lib/wasm/wasm_exec.js +++ b/lib/wasm/wasm_exec.js @@ -97,8 +97,8 @@ throw new Error("globalThis.TextDecoder is not available, polyfill required"); } - const encoder = new TextEncoder("utf-8"); - const decoder = new TextDecoder("utf-8"); + const encoder = new TextEncoder(); + const decoder = new TextDecoder(); globalThis.Go = class { constructor() {