For Emscripten debug runs, do -s SAFE_HEAP=1 tests.