From 0dd7f992bed2b222fccf77ee1247a9f2b1d46794 Mon Sep 17 00:00:00 2001 From: 1computer1 Date: Sun, 23 Jun 2019 00:27:12 -0400 Subject: [PATCH] Fix Julia evaluation --- README.md | 1 - docker/julia/run.sh | 6 +----- src/languages/julia.js | 13 +------------ 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index ca1a273..8d3072c 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,6 @@ Options are optionally set in `options`, which is a semicolon-delimited list of - `js` JavaScript (Node) - `harmony` enables harmony features (`--harmony` on node) - `julia` Julia - - `e` prints the result of evaluating the code - `lisp` Racket - `lua` Lua - `ocaml` OCaml diff --git a/docker/julia/run.sh b/docker/julia/run.sh index 24de6e6..7cf9563 100644 --- a/docker/julia/run.sh +++ b/docker/julia/run.sh @@ -1,5 +1 @@ -if [ "$EVAL_EXPR" = "true" ]; then - printf %s "$1" | julia -E || true -else - printf %s "$1" | julia -e || true -fi +printf %s "$1" | julia diff --git a/src/languages/julia.js b/src/languages/julia.js index bbc20e0..31e8ddc 100644 --- a/src/languages/julia.js +++ b/src/languages/julia.js @@ -4,20 +4,9 @@ class Julia extends Language { constructor() { super('julia', { name: 'Julia', - aliases: ['julia'], - options: { - e: () => '' - } + aliases: ['julia'] }); } - - runWith(options) { - if (options.has('e')) { - return { env: { EVAL_EXPR: 'true' } }; - } - - return {}; - } } module.exports = Julia;