diff options
| author | Damien George <damien@micropython.org> | 2023-05-31 11:44:45 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-03-22 13:06:39 +1100 |
| commit | ae6bcc9d2345d73016fd22f9cc22b56c73bae432 (patch) | |
| tree | 2408e7f4a38e13b693cb5bf1e73fb67f89725f91 /ports/webassembly/library.js | |
| parent | 8e3b701dee944582739adfa9a97de8ea76911a80 (diff) | |
webassembly: Use POSIX write for output and add stderr.
All output is now handled by Emscripten's stdio facility.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/webassembly/library.js')
| -rw-r--r-- | ports/webassembly/library.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ports/webassembly/library.js b/ports/webassembly/library.js index d1266598d..db5bac269 100644 --- a/ports/webassembly/library.js +++ b/ports/webassembly/library.js @@ -25,16 +25,6 @@ */ mergeInto(LibraryManager.library, { - mp_js_write: function(ptr, len) { - const buffer = HEAPU8.subarray(ptr, ptr + len) - if (ENVIRONMENT_IS_NODE) { - process.stdout.write(buffer); - } else { - const printEvent = new CustomEvent('micropython-print', { detail: buffer }); - document.dispatchEvent(printEvent); - } - }, - // This string will be emitted directly into the output file by Emscripten. mp_js_ticks_ms__postset: "var MP_JS_EPOCH = Date.now()", |
