Skip to content

Commit

Permalink
change lips.exec API
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 11, 2024
1 parent 950779c commit 51dabe2
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 79 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 1.0.0-beta.18
### Breaking
* change undocumented arguments to `lips.exec` into an object
### Features
* add R7RS `guard` macro
* add R7RS `parameterize` and `make-parameter`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![npm](https://img.shields.io/badge/npm-1.0.0%E2%80%93beta.17.3-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&f710fa2286e6c509828d347c2492bdca)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&b4c5dfb19e8ed4a82ec4deeb6c24f327)](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
4 changes: 2 additions & 2 deletions bin/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ function debug(message) {
console.log(message);
}
// -----------------------------------------------------------------------------
async function run(code, interpreter, dynamic = false, env = null, stack = false) {
async function run(code, interpreter, use_dynamic = false, env = null, stack = false) {
try {
return await interpreter.exec(code, dynamic, env)
return await interpreter.exec(code, { use_dynamic, env });
} catch (e) {
print_error(e, stack);
}
Expand Down
142 changes: 85 additions & 57 deletions dist/lips.js

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

Loading

0 comments on commit 51dabe2

Please sign in to comment.