diff options
Diffstat (limited to 'index.htm')
-rw-r--r-- | index.htm | 43 |
1 files changed, 22 insertions, 21 deletions
@@ -34,7 +34,7 @@ fd_seek : () => { throw new Error("Unexpected fd_seek call"); }, }, env : { - p_clipboard_write_text_impl : (size, text) => { + write_clipboard_text_impl : (size, text) => { let text_buffer = new ArrayBuffer(size); new Uint8Array(text_buffer).set(new Uint8Array(this.memory_buffer, text, size)); @@ -43,7 +43,7 @@ text_buffer : text_buffer, }); }, - p_time : () => { return BigInt(Date.now()); }, + current_time_in_milliseconds : () => { return BigInt(Date.now()); }, floor : Math.floor, ceil : Math.ceil, @@ -275,25 +275,26 @@ wasm, { env : { - p_clipboard_write_impl : () => {}, - p_time : () => {}, - floor : () => {}, - ceil : () => {}, - trunc : () => {}, - sqrt : () => {}, - cbrt : () => {}, - pow : () => {}, - log : () => {}, - log2 : () => {}, - log10 : () => {}, - exp : () => {}, - sin : () => {}, - cos : () => {}, - tan : () => {}, - asin : () => {}, - acos : () => {}, - atan : () => {}, - atan2 : () => {}, + write_clipboard_impl : () => {}, + current_time_in_milliseconds : () => {}, + + floor : () => {}, + ceil : () => {}, + trunc : () => {}, + sqrt : () => {}, + cbrt : () => {}, + pow : () => {}, + log : () => {}, + log2 : () => {}, + log10 : () => {}, + exp : () => {}, + sin : () => {}, + cos : () => {}, + tan : () => {}, + asin : () => {}, + acos : () => {}, + atan : () => {}, + atan2 : () => {}, }, } ); |