Skip to content

Commit

Permalink
fix calling lips.exec on parsed data
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Mar 22, 2024
1 parent b7b4009 commit abec7e5
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 63 deletions.
38 changes: 19 additions & 19 deletions dist/lips.cjs

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

38 changes: 19 additions & 19 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.

38 changes: 19 additions & 19 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.

3 changes: 1 addition & 2 deletions src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,6 @@ async function* _parse(arg, env) {
}
}
const parser = new Parser(arg, { env });
let i = 100000;
let prev;
while (true) {
const expr = await parser.read_object();
Expand Down Expand Up @@ -11217,7 +11216,7 @@ function exec_collect(collect_callback) {
}
const results = [];
if (is_pair(arg)) {
return [await exec_with_stacktrace(code, { env, dynamic_env, use_dynamic })];
return [await exec_with_stacktrace(arg, { env, dynamic_env, use_dynamic })];
}
const input = Array.isArray(arg) ? arg : _parse(arg);
for await (let code of input) {
Expand Down

0 comments on commit abec7e5

Please sign in to comment.