Fixing out web boot order.

This commit is contained in:
Brad Nelson
2022-07-13 22:44:39 -07:00
parent ff31b4e739
commit 3da2f4bfd3
4 changed files with 43 additions and 12 deletions

View File

@ -463,9 +463,9 @@ function VM(stdlib, foreign, heap) {
}
}
function memmove(src, dst, n) {
src = src | 0;
function memmove(dst, src, n) {
dst = dst | 0;
src = src | 0;
n = n | 0;
if ((src | 0) < (dst | 0)) {
src = (src + n - 1) | 0;