Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 13, 2023

As of #20592, assert is no longer defined in release builds in STRICT
mode, but its still possible to use SAFE_HEAP in this configuration.
Instead of complicating the definition of assert to match
preamble_minimal.js this change instead removed the dependency of
SAFE_HEAP on the assert function.

This fixes the core2s.test_module_wasm_memory which is currently failing on the emscripten-releases tree.

As of emscripten-core#20592, `assert` is no longer defined in release builds in STRICT
mode, but its still possible to use SAFE_HEAP in this configuration.
Instead of complicating the definition of `assert` to match
`preamble_minimal.js` this change instead removed the dependency of
SAFE_HEAP on the assert function.

This fixes the `core2s.test_module_wasm_memory` which is currently
failing on the emscripten-releases tree.
@sbc100 sbc100 requested a review from kripken November 13, 2023 02:15
@sbc100 sbc100 changed the title Remove dependency on assert from SAFE_HEAP. NFC Remove dependency on assert from SAFE_HEAP Nov 13, 2023
@sbc100 sbc100 enabled auto-merge (squash) November 13, 2023 05:00
@sbc100 sbc100 disabled auto-merge November 13, 2023 05:00
@sbc100 sbc100 enabled auto-merge (squash) November 13, 2023 05:00
@sbc100 sbc100 requested a review from dschuff November 13, 2023 17:43
@sbc100 sbc100 merged commit 457ea77 into emscripten-core:main Nov 13, 2023
@sbc100 sbc100 deleted the fix_safe_heap branch November 13, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants