diff --git a/cart/as/null0.ts b/cart/as/null0.ts index 24f49db..42b0e8b 100644 --- a/cart/as/null0.ts +++ b/cart/as/null0.ts @@ -825,10 +825,8 @@ declare function _null0_file_read(filename: ArrayBuffer, byteSize:UsizePointer, function file_read(filename: string): ArrayBuffer { const i = file_info(filename) const ret = new ArrayBuffer(i.filesize) - console.log(`in AS: ${i.filesize.toString()} ${ret.byteLength.toString()}`) const b = new UsizePointer() _null0_file_read(String.UTF8.encode(filename, true), b, ret) - console.log(`in AS, from read: ${b.value.toString()}`) return ret } diff --git a/cart/as/src/main.ts b/cart/as/src/main.ts index 56a1688..53fb448 100644 --- a/cart/as/src/main.ts +++ b/cart/as/src/main.ts @@ -10,7 +10,6 @@ export function load(): void { y = 120 - (d.height/2) const t = file_read("assets/cyber.txt") - console.log(`WASM ArrayBuffer size: ${t.byteLength.toString()}`) console.log(String.UTF8.decode(t, false)) } diff --git a/docs/index.html b/docs/index.html index b0eb5a5..97375a4 100755 --- a/docs/index.html +++ b/docs/index.html @@ -32,9 +32,9 @@ - + - + diff --git a/docs/null0.js b/docs/null0.js index 87712db..3bb491b 100755 --- a/docs/null0.js +++ b/docs/null0.js @@ -92,10 +92,12 @@ export async function setupCart ( // not exactly right, since it will add newlines, but this covers printf and stuff text = text.replace(/\n*$/, '') - if (fd === 1) { - console.log(text) - } else { - console.error(text) + if (text.trim() !== '') { + if (fd === 1) { + console.log(text) + } else { + console.error(text) + } } } return 0