Skip to content

Commit

Permalink
fix env in evauluate + ignore more code by C8
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 13, 2024
1 parent 807f7d1 commit 577081c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function contentLoaded(win, fn) {
}
// -------------------------------------------------------------------------
/* eslint-disable */
/* c8 ignore next */
/* c8 ignore next 21 */
function log(x, regex = null) {
var literal = arguments[1] === true;
function msg(x) {
Expand Down Expand Up @@ -10113,12 +10113,12 @@ const noop = () => {};
function evaluate(code, { env, dynamic_env, use_dynamic, error = noop, ...rest } = {}) {
try {
if (!is_env(dynamic_env)) {
dynamic_env = env === true ? global_env : (env || global_env);
dynamic_env = env === true ? user_env : (env || user_env);
}
if (use_dynamic) {
env = dynamic_env;
} else if (env === true) {
env = global_env;
env = user_env;
} else {
env = env || global_env;
}
Expand Down

0 comments on commit 577081c

Please sign in to comment.