Skip to content

Commit fedf9c4

Browse files
committed
Take STATIC_BASE into account for memory initializer string
1 parent 1fdd689 commit fedf9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/postamble.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#if MEM_INIT_METHOD == 2
55
if (memoryInitializer) (function(s) {
6-
for (var i = 0; i < s.length; ++i) HEAPU8[i] = s.charCodeAt(i);
6+
for (var i = 0; i < s.length; ++i) HEAPU8[STATIC_BASE + i] = s.charCodeAt(i);
77
})(memoryInitializer);
88
#else
99
#if MEM_INIT_METHOD == 1

0 commit comments

Comments
 (0)