fd now uses numbers to fix the inability to exit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user