Skip to content

Commit ec6f067

Browse files
committed
small update
1 parent 0510dc5 commit ec6f067

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ports/wasm/supervisor/port.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,11 @@ void port_background_tick(void) {
202202
// Forward declare types
203203
typedef struct _fs_user_mount_t fs_user_mount_t;
204204

205-
// Safe mode reset - in WASM this is a no-op
206-
// Unlike physical boards, we keep everything running
205+
// Safe mode reset - in WASM this triggers a controlled abort
207206
void reset_into_safe_mode(safe_mode_t reason) {
208207
(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
208+
// In WASM, we abort the execution to match the noreturn contract
209+
abort();
211210
}
212211

213212
// Stack checking - WASM manages its own stack

0 commit comments

Comments
 (0)