Skip to content

Commit

Permalink
fix rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jul 11, 2023
1 parent 62ae416 commit 736afbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notebooks/squint_wip.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
(let [fib (fn fib [x]
(= 1 2)
(if (= x 10)
:hello
:dude
(fib (dec x))))]
(fib 20)))}
{::clerk/render-evaluator :squint} 25)
Expand Down
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/viewer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@
* dropping the `(binding [*ns* *ns*] ,,,)`
* rewriting `load-string`"
[form]
form #_(let [form-without-binding (last form)]
(let [form-without-binding (last form)]
(if (and (seq? form-without-binding) (= 'load-string (first form-without-binding)))
(list 'js/global_eval (list 'nextjournal.clerk.cherry-env/cherry-compile-string (second form-without-binding)))
form-without-binding)))
Expand Down

0 comments on commit 736afbf

Please sign in to comment.