Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions clj/src/cljd/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@
[cljd.flutter.repl :refer [pick! mount!]]
[cljd.flutter :as f]
["package:flutter/material.dart" :as m]))]
(locking *compiler-state
(let [p (promise)
_ (swap! *repl-states assoc-in [repltag :ack!] #(deliver p %))
_ (eval-to-repl repltag expr-or-throwable *compiler-state trigger-reload p)
str-or-throwable @p]
(if (instance? Throwable str-or-throwable)
(throw str-or-throwable)
(set! compiler/*current-ns* (symbol str-or-throwable)))))
(let [p (promise)
_ (locking *compiler-state
(swap! *repl-states assoc-in [repltag :ack!] #(deliver p %))
(eval-to-repl repltag expr-or-throwable *compiler-state trigger-reload p))
str-or-throwable @p]
(if (instance? Throwable str-or-throwable)
(throw str-or-throwable)
(set! compiler/*current-ns* (symbol str-or-throwable))))
(let [x (try
(compiler/read {:eof *in* :read-cond :allow :features #{:cljd}} *in*)
(catch Throwable t t))]
Expand Down