diff options
| author | spv420 <spv@spv.sh> | 2022-07-15 12:09:22 -0400 |
|---|---|---|
| committer | spv420 <spv@spv.sh> | 2022-07-15 12:09:22 -0400 |
| commit | d1da310f02adc0e9b5f8656ea063fd3231901611 (patch) | |
| tree | 18c5f5ae07c39805018aad81a974288924dbb196 /src/js/primitives/mem.js | |
| parent | 3df21d6c8d6c978cedaac23dbbf4c106dee9120f (diff) | |
code
Diffstat (limited to 'src/js/primitives/mem.js')
| -rw-r--r-- | src/js/primitives/mem.js | 2 |
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; } |
