fix: defer handles of async functions

This commit is contained in:
2024-03-09 00:28:30 +02:00
parent 446ecd8f2b
commit 5ba858545a
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ public class AsyncFunctionLib extends FunctionValue {
public void onReject(EngineException err) {
next(ctx, Values.NO_RETURN, err);
}
});
}.defer(ctx));
}
}

View File

@@ -62,7 +62,7 @@ public class AsyncGeneratorLib {
@Override public void onReject(EngineException err) {
next(ctx, Values.NO_RETURN, Values.NO_RETURN, err);
}
});
}.defer(ctx));
}
else if (state == 2) {
var obj = new ObjectValue();