Permalink
Browse files

CLJS-2884: Support for GraalJS RC6

  • Loading branch information...
mfikes committed Sep 3, 2018
1 parent 83866aa commit 3e28f7b9703a8995a58c7a285b05aa36daf76ddd
Showing with 6 additions and 7 deletions.
  1. +4 −4 .travis.yml
  2. +2 −3 src/main/clojure/cljs/repl/graaljs.clj
View
@@ -14,8 +14,8 @@ before_install:
- sudo apt-get install -y libjavascriptcoregtk-3.0-bin
- wget https://aka.ms/chakracore/cc_linux_x64_1_8_1 -O chakra-core.tar.gz
- tar xvzf chakra-core.tar.gz
- wget https://github.com/oracle/graal/releases/download/vm-1.0.0-rc4/graalvm-ce-1.0.0-rc4-linux-amd64.tar.gz
- tar xzf graalvm-ce-1.0.0-rc4-linux-amd64.tar.gz
- wget https://github.com/oracle/graal/releases/download/vm-1.0.0-rc6/graalvm-ce-1.0.0-rc6-linux-amd64.tar.gz
- tar xzf graalvm-ce-1.0.0-rc6-linux-amd64.tar.gz
before_script:
- script/bootstrap
@@ -55,7 +55,7 @@ script:
- grep '0 failures, 0 errors.' test-out.txt
- ./ChakraCoreFiles/bin/ch builds/out-adv/core-advanced-test.js | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- ./graalvm-ce-1.0.0-rc4/bin/js builds/out-adv/core-advanced-test.js | tee test-out.txt
- ./graalvm-ce-1.0.0-rc6/bin/js builds/out-adv/core-advanced-test.js | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- script/test-self-host | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
@@ -67,5 +67,5 @@ script:
- grep '0 failures, 0 errors.' test-out.txt
- script/test-cli rhino | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
- PATH=`pwd`/graalvm-ce-1.0.0-rc4/bin:$PATH script/test-cli graaljs | tee test-out.txt
- PATH=`pwd`/graalvm-ce-1.0.0-rc6/bin:$PATH script/test-cli graaljs | tee test-out.txt
- grep '0 failures, 0 errors.' test-out.txt
@@ -39,8 +39,7 @@
(let [engine (eval `(GraalJSScriptEngine/create nil
(-> (Context/newBuilder (make-array String 0))
~@(form-js-opts opts)
(.allowHostAccess true)
(.allowCreateThread true)
(.allowAllAccess true)
(.allowNativeAccess true))))
context (.getContext engine)]
(.setWriter context *out*)
@@ -183,7 +182,7 @@
(string/join "\n" (drop 1 (string/split st #"\n")))))))
(def ^:private default-js-opts
{"js.precise-time" "true"})
{"js.timer-resolution" "1"})
(defn repl-env* [{:keys [debug] :as opts}]
(let [opts (merge default-js-opts opts)

0 comments on commit 3e28f7b

Please sign in to comment.