fd now uses numbers to fix the inability to exit

This commit is contained in:
2025-06-06 17:29:06 -05:00
parent 580df9f233
commit adbaa92dd5
4 changed files with 32 additions and 81 deletions

View File

@@ -506,7 +506,9 @@ void actor_turn(cell_rt *actor)
uncaught_exception(actor->context, result);
JS_FreeValue(actor->context, arg);
} else if (l.type == LETTER_CALLBACK) {
printf("running a callback\n");
result = JS_Call(actor->context, l.callback, JS_UNDEFINED, 0, NULL);
printf("turn is over for %s\n", actor->id);
uncaught_exception(actor->context, result);
JS_FreeValue(actor->context, l.callback);
}