Compare commits

..

1 Commits

Author SHA1 Message Date
5ba858545a fix: defer handles of async functions 2024-03-09 00:28:30 +02:00
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
project_group = me.topchetoeu project_group = me.topchetoeu
project_name = jscript project_name = jscript
project_version = 0.9.10-beta project_version = 0.9.11-beta
main_class = me.topchetoeu.jscript.utils.JScriptRepl main_class = me.topchetoeu.jscript.utils.JScriptRepl

View File

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

View File

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