diff options
Diffstat (limited to 'Tools/wasm/python.worker.js')
-rw-r--r-- | Tools/wasm/python.worker.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Tools/wasm/python.worker.js b/Tools/wasm/python.worker.js index c3a8bdf..1b79460 100644 --- a/Tools/wasm/python.worker.js +++ b/Tools/wasm/python.worker.js @@ -35,15 +35,11 @@ class StdinBuffer { } } -const stdoutBufSize = 128; -const stdoutBuf = new Int32Array() -let index = 0; - const stdout = (charCode) => { if (charCode) { postMessage({ type: 'stdout', - stdout: String.fromCharCode(charCode), + stdout: charCode, }) } else { console.log(typeof charCode, charCode) @@ -54,7 +50,7 @@ const stderr = (charCode) => { if (charCode) { postMessage({ type: 'stderr', - stderr: String.fromCharCode(charCode), + stderr: charCode, }) } else { console.log(typeof charCode, charCode) |