Skip to content

Commit

Permalink
CLJS-2884: Support for GraalJS RC6
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes committed Sep 7, 2018
1 parent 83866aa commit 3e28f7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
5 changes: 2 additions & 3 deletions src/main/clojure/cljs/repl/graaljs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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*)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3e28f7b

Please sign in to comment.