contextless fixes for js

This commit is contained in:
gingerBill
2025-08-08 13:29:49 +01:00
parent 7c93a5ae80
commit 804984ed35
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ exit :: proc "c" (exit_code: c.int) -> ! {
}
@(private, fini)
finish_atexit :: proc "c" () {
finish_atexit :: proc "contextless" () {
n := intrinsics.atomic_exchange(&atexit_functions_count, 0)
for function in atexit_functions[:n] {
function()