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
- Use `elif` here so its clear that we either include one block or the
next, but never both.
- Fix signature of setjmp.
- Include the `_emscripten_throw_longjmp` stub regardless of
`INCLUDE_FULL_LIBRARY` settings.
This final fix is a prerequisite for #16003.
// built with SUPPORT_LONGJMP=1, the object file contains references of not
1259
1257
// longjmp but _emscripten_throw_longjmp, which is called from
1260
1258
// emscripten_longjmp.
1261
-
_emscripten_throw_longjmp: function(){error('longjmp support was disabled (SUPPORT_LONGJMP=0), but it is required by the code (either set SUPPORT_LONGJMP=1, or remove uses of it in the project)');},
1262
1259
get_emscripten_throw_longjmp__deps(){
1263
1260
returnthis.longjmp__deps;
1264
1261
},
1265
1262
#endif
1263
+
_emscripten_throw_longjmp: function(){
1264
+
error('longjmp support was disabled (SUPPORT_LONGJMP=0), but it is required by the code (either set SUPPORT_LONGJMP=1, or remove uses of it in the project)');
1265
+
},
1266
1266
// will never be emitted, as the dep errors at compile time
1267
1267
longjmp: function(env,value){
1268
-
abort('longjmp not supported');
1268
+
abort('longjmp not supported (build with -s SUPPORT_LONGJMP)');
1269
1269
},
1270
-
setjmp: function(env,value){
1271
-
abort('setjmp not supported');
1270
+
setjmp: function(env){
1271
+
abort('setjmp not supported (build with -s SUPPORT_LONGJMP)');
0 commit comments