fix: defer handles of async functions
This commit is contained in:
parent
446ecd8f2b
commit
5ba858545a
@ -1,4 +1,4 @@
|
||||
project_group = me.topchetoeu
|
||||
project_name = jscript
|
||||
project_version = 0.9.10-beta
|
||||
project_version = 0.9.11-beta
|
||||
main_class = me.topchetoeu.jscript.utils.JScriptRepl
|
||||
|
@ -54,7 +54,7 @@ public class AsyncFunctionLib extends FunctionValue {
|
||||
public void onReject(EngineException err) {
|
||||
next(ctx, Values.NO_RETURN, err);
|
||||
}
|
||||
});
|
||||
}.defer(ctx));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user