summaryrefslogtreecommitdiff
path: root/src/js/primitives/mem.js
diff options
context:
space:
mode:
authorspv420 <spv@spv.sh>2022-07-15 12:09:22 -0400
committerspv420 <spv@spv.sh>2022-07-15 12:09:22 -0400
commitd1da310f02adc0e9b5f8656ea063fd3231901611 (patch)
tree18c5f5ae07c39805018aad81a974288924dbb196 /src/js/primitives/mem.js
parent3df21d6c8d6c978cedaac23dbbf4c106dee9120f (diff)
code
Diffstat (limited to 'src/js/primitives/mem.js')
-rw-r--r--src/js/primitives/mem.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/primitives/mem.js b/src/js/primitives/mem.js
index b5078eb..4025c2f 100644
--- a/src/js/primitives/mem.js
+++ b/src/js/primitives/mem.js
@@ -254,6 +254,7 @@ function _sptr(s) {
}
write_str(global_sptr_addy, s);
global_sptr_addy += s.length;
+ sptr_len += s.length;
return global_sptr_addy - s.length;
}
@@ -281,6 +282,7 @@ function shit_heap(v) {
}
// write_str(global_sptr_addy, s);
global_sptr_addy += v;
+ sptr_len += v;
return global_sptr_addy - v;
}