Skip to content
Merged
Changes from all commits
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
12 changes: 1 addition & 11 deletions src/lib/libcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,7 @@ addToLibrary({
return '0x' + ptr.toString(16).padStart(8, '0');
},

$zeroMemory: (address, size) => {
#if LEGACY_VM_SUPPORT
if (!HEAPU8.fill) {
for (var i = 0; i < size; i++) {
HEAPU8[address + i] = 0;
}
return;
}
#endif
HEAPU8.fill(0, address, address + size);
},
$zeroMemory: (ptr, size) => HEAPU8.fill(0, ptr, ptr + size),

#if SAFE_HEAP
// Trivial wrappers around runtime functions that make these symbols available
Expand Down