diff --git a/vendor/wasm/js/runtime.js b/vendor/wasm/js/runtime.js index ed569523b..2a5b27950 100644 --- a/vendor/wasm/js/runtime.js +++ b/vendor/wasm/js/runtime.js @@ -9,6 +9,10 @@ function getElement(name) { return undefined; } +function stripNewline(str) { + return str.replace(/\n$/, ' ') +} + class WasmMemoryInterface { constructor() { this.memory = null;