You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix embind to work (more) on MINIMAL_RUNTIME. Remove old super-ancient pre-asm.js binding code from embind.
* Add some more embind deps to free to resolve indirect dependency.
Copy file name to clipboardExpand all lines: src/shell_minimal.js
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -129,13 +129,19 @@ function err(text) {
129
129
// compilation is ready. In that callback, call the function run() to start
130
130
// the program.
131
131
functionready(){
132
+
#if INVOKE_RUN&&hasExportedFunction('_main')
132
133
#if USE_PTHREADS
133
134
if(!ENVIRONMENT_IS_PTHREAD){
134
135
#endif
135
136
run();
136
137
#if USE_PTHREADS
137
138
}
138
139
#endif
140
+
#else
141
+
#if ASSERTIONS
142
+
console.log('ready() called, and INVOKE_RUN=0. The runtime is now ready for you to call run() to invoke application _main(). You can also override ready() in a --pre-js file to get this signal as a callback')
143
+
#endif
144
+
#endif
139
145
}
140
146
141
147
// --pre-jses are emitted after the Module integration code, so that they can
0 commit comments