mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
minor: use read_sized_string_from_mem
This commit is contained in:
parent
6d2ef6ca41
commit
b35621e9aa
1 changed files with 1 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ V86.prototype.zstd_decompress_worker = async function(decompressed_size, src)
|
|||
env["__indirect_function_table"] = new WebAssembly.Table({ element: "anyfunc", initial: 1024 });
|
||||
env["abort"] = () => { throw new Error("zstd worker aborted"); };
|
||||
env["log_from_wasm"] = env["console_log_from_wasm"] = (off, len) => {
|
||||
console.log(String.fromCharCode(...new Uint8Array(wasm.exports.memory.buffer, off, len)));
|
||||
console.log(read_sized_string_from_mem(wasm.exports.memory.buffer, off, len));
|
||||
};
|
||||
env["dbg_trace_from_wasm"] = () => console.trace();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue