Skip to content

Commit b6f3fa4

Browse files
authored
stream.wasm : add HEAPU8 to exported runtime methods (#3130)
* stream.wasm : add HEAPU8 to exported runtime methods This commit adds HEAPU8 to the list of exported methods for stream.wasm. The motivation for this is that without it HEAPUD8 will be undefined and when its 'buffer' attribute is accessed this will cause error as reported in the referenced issue. Note that to test this make sure that the web browsers caches is cleared first. Resolves: #3123 * command.wasm : add HEAPU8 to exported runtime methods
1 parent cb2bd11 commit b6f3fa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/command.wasm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ set_target_properties(${TARGET} PROPERTIES LINK_FLAGS " \
3636
-s INITIAL_MEMORY=1024MB \
3737
-s TOTAL_MEMORY=1024MB \
3838
-s FORCE_FILESYSTEM=1 \
39-
-s EXPORTED_RUNTIME_METHODS=\"['print', 'printErr', 'ccall', 'cwrap']\" \
39+
-s EXPORTED_RUNTIME_METHODS=\"['print', 'printErr', 'ccall', 'cwrap', 'HEAPU8']\" \
4040
${EXTRA_FLAGS} \
4141
")
4242

examples/stream.wasm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ set_target_properties(${TARGET} PROPERTIES LINK_FLAGS " \
3535
-s INITIAL_MEMORY=1024MB \
3636
-s TOTAL_MEMORY=1024MB \
3737
-s FORCE_FILESYSTEM=1 \
38-
-s EXPORTED_RUNTIME_METHODS=\"['print', 'printErr', 'ccall', 'cwrap']\" \
38+
-s EXPORTED_RUNTIME_METHODS=\"['print', 'printErr', 'ccall', 'cwrap', 'HEAPU8']\" \
3939
${EXTRA_FLAGS} \
4040
")
4141

0 commit comments

Comments
 (0)