From 577081c6817e67c897e53c478614b18ecf75cfeb Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Sat, 13 Jan 2024 22:28:32 +0100 Subject: [PATCH] fix env in evauluate + ignore more code by C8 --- src/lips.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lips.js b/src/lips.js index 83c53bdcc..a14edfc98 100644 --- a/src/lips.js +++ b/src/lips.js @@ -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) { @@ -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; }