mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-08 05:53:12 +00:00
Define stripNewline function
This commit is contained in:
4
vendor/wasm/js/runtime.js
vendored
4
vendor/wasm/js/runtime.js
vendored
@@ -9,6 +9,10 @@ function getElement(name) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function stripNewline(str) {
|
||||
return str.replace(/\n$/, ' ')
|
||||
}
|
||||
|
||||
class WasmMemoryInterface {
|
||||
constructor() {
|
||||
this.memory = null;
|
||||
|
||||
Reference in New Issue
Block a user