Skip to content

Commit

Permalink
fix handling of async code in while macro #310
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 11, 2024
1 parent e4b7451 commit 0f7d231
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![npm](https://img.shields.io/badge/npm-1.0.0%E2%80%93beta.18.1-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
![1.0.0 Complete](https://img.shields.io/github/milestones/progress-percent/jcubic/lips/1?label=1.0.0%20Complete)
[![Build and test](https://github.com/jcubic/lips/actions/workflows/build.yaml/badge.svg?branch=devel&event=push)](https://github.com/jcubic/lips/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&5dee32a131ab77e7b275ff9e2d31107c)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&05a60c1f01c218325d4bfddad9e4f9a7)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Join Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jcubic/lips)
![NPM Download Count](https://img.shields.io/npm/dm/@jcubic/lips)
![JSDelivr Download count](https://img.shields.io/jsdelivr/npm/hm/@jcubic/lips)
Expand Down
16 changes: 8 additions & 8 deletions dist/lips.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions dist/lips.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lips.esm.min.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/lips.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/lips.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -7770,10 +7770,10 @@ var global_env = new Environment({
const test = code.car;
const eval_args = { ...args, env: this };
const body = new Pair(new LSymbol('begin'), code.cdr);
(function loop() {
unpromise(evaluate(test, eval_args), test => {
return (function loop() {
return unpromise(evaluate(test, eval_args), test => {
if (test) {
unpromise(evaluate(body, eval_args), loop);
return unpromise(evaluate(body, eval_args), loop);
}
});
})();
Expand Down

0 comments on commit 0f7d231

Please sign in to comment.