Define stripNewline function
This commit is contained in:
1 parent
256e4a0081
commit
ea8d3d4531
1 file changed
+4
Vendored
+4
@@ -9,6 +9,10 @@ function getElement(name) {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function stripNewline(str) {
|
||||||
|
return str.replace(/\n$/, ' ')
|
||||||
|
}
|
||||||
|
|
||||||
class WasmMemoryInterface {
|
class WasmMemoryInterface {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.memory = null;
|
this.memory = null;
|
||||||
|
|||||||
Reference in new issue
Block a user