Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleaning code.
  • Loading branch information
thaystg authored and github-actions committed Sep 23, 2021
commit 0a2a4e36cb7ef3ff9861160b822fd99e4677a995
8 changes: 4 additions & 4 deletions src/mono/wasm/runtime/library_mono.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,10 @@ var MonoSupportLib = {
Module._free (this.debugger_buffer);
else
this.debugger_buffer_len = 256;
var length = command_parameters.length > this.debugger_buffer_len ? command_parameters.length : this.debugger_buffer_len;
this.debugger_buffer = Module._malloc (length);
this.heap_bytes = new Uint8Array (Module.HEAPU8.buffer, this.debugger_buffer, length);
this.debugger_buffer_len = length;
if (this.debugger_buffer_len < command_parameters.length)
this.debugger_buffer_len = command_parameters.length;
this.debugger_buffer = Module._malloc (this.debugger_buffer_len);
this.heap_bytes = new Uint8Array (Module.HEAPU8.buffer, this.debugger_buffer, this.debugger_buffer_len);
}
this.heap_bytes.set(this._base64_to_uint8 (command_parameters));
},
Expand Down