planck-repl / planck

Stand-alone ClojureScript REPL
https://planck-repl.org
Eclipse Public License 1.0
1.03k stars 68 forks source link

Error evaluating -e expression #1022

Open mfikes opened 4 years ago

mfikes commented 4 years ago
$ clj -m cljs.main -re node -e '(def x 1) (declare y) (try (assert (pos? x)) (def y (+ 1 2 x)) y (finally (assert (pos? y))))'
#'cljs.user/x
#'cljs.user/y
4
$ plk -e '(def x 1) (declare y) (try (assert (pos? x)) (def y (+ 1 2 x)) y (finally (assert (pos? y))))'
Execution error (TypeError) at (<cljs repl>:1).
Object is not a function (near '...$test:null)])));})()...')
pyrmont commented 4 years ago

Noting that this might be the same issue as #1025.