diff options
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 7de82dbc..68510e3a 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -889,7 +889,11 @@ addPreRun(function() { addRunDependency('pgo') }); function loadMemoryInitializer(filename) { function applyData(data) { +#if USE_TYPED_ARRAYS == 2 HEAPU8.set(data, TOTAL_STACK); +#else + allocate(data, 'i8', ALLOC_NONE, TOTAL_STACK); +#endif } if (ENVIRONMENT_IS_NODE || ENVIRONMENT_IS_SHELL) { |