We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a318a2 commit ea06e07Copy full SHA for ea06e07
src/preamble_minimal.js
@@ -15,11 +15,7 @@ function assert(condition, text) {
15
16
/** @param {string|number=} what */
17
function abort(what) {
18
-#if ASSERTIONS
19
- throw new Error(what);
20
-#else
21
- throw what;
22
-#endif
+ throw {{{ ASSERTIONS ? 'new Error(what)' : 'what' }}};
23
}
24
25
#if SAFE_HEAP
@@ -96,11 +92,7 @@ if (!ENVIRONMENT_IS_PTHREAD) {
96
92
updateGlobalBufferAndViews(wasmMemory.buffer);
97
93
#if USE_PTHREADS
98
94
} else {
99
-#if MODULARIZE
100
- updateGlobalBufferAndViews(Module.buffer);
101
102
- updateGlobalBufferAndViews(wasmMemory.buffer);
103
95
+ updateGlobalBufferAndViews({{{ MODULARIZE ? 'Module.buffer' : 'wasmMemory.buffer' }}});
104
105
#endif // USE_PTHREADS
106
#endif // IMPORTED_MEMORY
0 commit comments