Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vm): Don't introduce an Unknown scope when calling functions
The extra `Unknown` scope would cause the `execute` loop to return early which would cause the calling extern function (in this case `force`) to not have its own frame at the top of the stack when it regained control.
- Loading branch information
Showing
4 changed files
with
28 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ let thread = spawn (\_ -> | |
send sender 0 | ||
yield () | ||
send sender 1 | ||
yield () | ||
() | ||
) | ||
resume thread | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters