diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-09 15:18:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-09 15:18:28 -0700 |
commit | 5bbcaa3df570328e568131d8d65aaeb5581942a3 (patch) | |
tree | 00f816a907caf7048f9dbfab20a2e72d9c9220ff /emcc | |
parent | fee203ed899368e0bd0d6bd6c88c72b0ca8d74e8 (diff) |
do not modify textual memory initializer when emitting source maps, as it messes up line numbers; fixes #2410
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1694,7 +1694,7 @@ try: logging.debug('wrote memory initialization to %s', memfile) else: logging.debug('did not see memory initialization') - elif shared.Settings.USE_TYPED_ARRAYS == 2 and not shared.Settings.MAIN_MODULE and not shared.Settings.SIDE_MODULE: + elif shared.Settings.USE_TYPED_ARRAYS == 2 and not shared.Settings.MAIN_MODULE and not shared.Settings.SIDE_MODULE and debug_level < 4: # not writing a binary init, but we can at least optimize them by splitting them up src = open(final).read() src = shared.JS.optimize_initializer(src) |