Skip to content

Commit 8185819

Browse files
authored
Allow run in EXPORTED_RUNTIME_SYMBOLS, even under MINIMAL_RUNTIME (#17425)
The `run` symbol exists in both runtimes, this change means we only have a single MINIMAL_RUNTIME-only symbol left in this list, which I'm hoping to remove as a followup.
1 parent e6b78a3 commit 8185819

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/modules.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ function exportRuntime() {
344344

345345
// All possible runtime elements that can be exported
346346
let runtimeElements = [
347+
'run',
347348
'ccall',
348349
'cwrap',
349350
'UTF8ArrayToString',
@@ -408,11 +409,8 @@ function exportRuntime() {
408409
}
409410

410411
if (!MINIMAL_RUNTIME) {
411-
// MINIMAL_RUNTIME has moved these functions to library_strings.js
412-
runtimeElements = runtimeElements.concat([
413-
'run',
414-
'ExitStatus',
415-
]);
412+
// Symbols that only exist in the regular runtime.
413+
runtimeElements.push('ExitStatus');
416414
}
417415

418416
if (STACK_OVERFLOW_CHECK) {

0 commit comments

Comments
 (0)