diff --git a/README.md b/README.md index 50540a5..7aa8c7b 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,6 @@ Options are optionally set in `options`, which is a semicolon-delimited list of - `java` Java (OpenJDK) - `js` JavaScript (Node) - `harmony` enables harmony features (`--harmony` on node) - - `e` prints the result of evaluating the code - `julia` Julia - `e` prints the result of evaluating the code - `lisp` Racket diff --git a/docker/javascript/run.sh b/docker/javascript/run.sh index ff35f13..5a13bec 100644 --- a/docker/javascript/run.sh +++ b/docker/javascript/run.sh @@ -1,11 +1,5 @@ -if [ "$EVAL_EXPR" = "true" ]; then - flag="-p" -else - flag="-e" -fi - if [ "$EVAL_HARMONY" = "true" ]; then - node --harmony "$flag" "$1" + node --harmony -p "$1" else - node "$flag" "$1" + node -p "$1" fi diff --git a/src/languages/javascript.js b/src/languages/javascript.js index 1ee6974..e71259a 100644 --- a/src/languages/javascript.js +++ b/src/languages/javascript.js @@ -6,8 +6,7 @@ class JavaScript extends Language { name: 'JavaScript', aliases: ['javascript', 'js'], options: { - harmony: () => '', - e: () => '' + harmony: () => '' } }); } @@ -18,10 +17,6 @@ class JavaScript extends Language { ret.env.EVAL_HARMONY = 'true'; } - if (options.has('e')) { - ret.env.EVAL_EXPR = 'true'; - } - return ret; } }