Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created January 8, 2015 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/895194fe77ec086165fe to your computer and use it in GitHub Desktop.
Save mfikes/895194fe77ec086165fe to your computer and use it in GitHub Desktop.
(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