We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0510dc5 commit ec6f067Copy full SHA for ec6f067
1 file changed
ports/wasm/supervisor/port.c
@@ -202,12 +202,11 @@ void port_background_tick(void) {
202
// Forward declare types
203
typedef struct _fs_user_mount_t fs_user_mount_t;
204
205
-// Safe mode reset - in WASM this is a no-op
206
-// Unlike physical boards, we keep everything running
+// Safe mode reset - in WASM this triggers a controlled abort
207
void reset_into_safe_mode(safe_mode_t reason) {
208
(void)reason;
209
- // In WASM, "safe mode" just means we had an error
210
- // But we don't actually disable anything - the REPL continues working
+ // In WASM, we abort the execution to match the noreturn contract
+ abort();
211
}
212
213
// Stack checking - WASM manages its own stack
0 commit comments