Created
January 8, 2015 19:00
-
-
Save mfikes/895194fe77ec086165fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn jsc-eval | |
"Evaluate a JavaScript string in the JSC REPL process." | |
[repl-env js] | |
(let [in @(:in repl-env) | |
out @(:out repl-env)] | |
(write out js) | |
(let [result "success" #_(read-response in)] | |
{:status :success | |
:value (:value 1)}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment