-
Hi, why are memory views not exposed in strict mode? (see https://github.com/emscripten-core/emscripten/blob/main/src/runtime_shared.js#L12) Is it considered bad practice to access the memory views directly? It would be great if this behavior could be documented here https://emscripten.org/docs/tools_reference/settings_reference.html#strict. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In strict mode, for code size reasons, we only export what you ask for. You can export a given heap by adding it to See #21439 I debug builds I believe you should see an informative error if you try to access a heap that you didn't export. e.g.:
Did this messsage not show up for you? |
Beta Was this translation helpful? Give feedback.
In strict mode, for code size reasons, we only export what you ask for. You can export a given heap by adding it to
-sEXPORTED_RUNTIME_METHODS
.See #21439
I debug builds I believe you should see an informative error if you try to access a heap that you didn't export. e.g.: