Skip to content

Commit 3e28f7b

Browse files
committed
CLJS-2884: Support for GraalJS RC6
1 parent 83866aa commit 3e28f7b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ before_install:
1414
- sudo apt-get install -y libjavascriptcoregtk-3.0-bin
1515
- wget https://aka.ms/chakracore/cc_linux_x64_1_8_1 -O chakra-core.tar.gz
1616
- tar xvzf chakra-core.tar.gz
17-
- wget https://github.com/oracle/graal/releases/download/vm-1.0.0-rc4/graalvm-ce-1.0.0-rc4-linux-amd64.tar.gz
18-
- tar xzf graalvm-ce-1.0.0-rc4-linux-amd64.tar.gz
17+
- wget https://github.com/oracle/graal/releases/download/vm-1.0.0-rc6/graalvm-ce-1.0.0-rc6-linux-amd64.tar.gz
18+
- tar xzf graalvm-ce-1.0.0-rc6-linux-amd64.tar.gz
1919

2020
before_script:
2121
- script/bootstrap
@@ -55,7 +55,7 @@ script:
5555
- grep '0 failures, 0 errors.' test-out.txt
5656
- ./ChakraCoreFiles/bin/ch builds/out-adv/core-advanced-test.js | tee test-out.txt
5757
- grep '0 failures, 0 errors.' test-out.txt
58-
- ./graalvm-ce-1.0.0-rc4/bin/js builds/out-adv/core-advanced-test.js | tee test-out.txt
58+
- ./graalvm-ce-1.0.0-rc6/bin/js builds/out-adv/core-advanced-test.js | tee test-out.txt
5959
- grep '0 failures, 0 errors.' test-out.txt
6060
- script/test-self-host | tee test-out.txt
6161
- grep '0 failures, 0 errors.' test-out.txt
@@ -67,5 +67,5 @@ script:
6767
- grep '0 failures, 0 errors.' test-out.txt
6868
- script/test-cli rhino | tee test-out.txt
6969
- grep '0 failures, 0 errors.' test-out.txt
70-
- PATH=`pwd`/graalvm-ce-1.0.0-rc4/bin:$PATH script/test-cli graaljs | tee test-out.txt
70+
- PATH=`pwd`/graalvm-ce-1.0.0-rc6/bin:$PATH script/test-cli graaljs | tee test-out.txt
7171
- grep '0 failures, 0 errors.' test-out.txt

src/main/clojure/cljs/repl/graaljs.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
(let [engine (eval `(GraalJSScriptEngine/create nil
4040
(-> (Context/newBuilder (make-array String 0))
4141
~@(form-js-opts opts)
42-
(.allowHostAccess true)
43-
(.allowCreateThread true)
42+
(.allowAllAccess true)
4443
(.allowNativeAccess true))))
4544
context (.getContext engine)]
4645
(.setWriter context *out*)
@@ -183,7 +182,7 @@
183182
(string/join "\n" (drop 1 (string/split st #"\n")))))))
184183

185184
(def ^:private default-js-opts
186-
{"js.precise-time" "true"})
185+
{"js.timer-resolution" "1"})
187186

188187
(defn repl-env* [{:keys [debug] :as opts}]
189188
(let [opts (merge default-js-opts opts)

0 commit comments

Comments
 (0)