Skip to content

Commit

Permalink
refactor: fiber recursively await value
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Jul 23, 2023
1 parent 77eee1b commit 1c113a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beize_vm/lib/vm/natives/fiber.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class BeizeFiberNatives {
(final BeizeValue x) async {
BeizeValue value =
call.frame.callValue(x, <BeizeValue>[]).unwrapUnsafe();
if (value is BeizeUnawaitedValue) {
while (value is BeizeUnawaitedValue) {
value = await value.execute(call.frame).unwrapUnsafe();
}
return value;
Expand Down

0 comments on commit 1c113a7

Please sign in to comment.