We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68008cc commit 7275372Copy full SHA for 7275372
src/clj/cljs/repl/rhino.clj
@@ -189,6 +189,17 @@
189
(Integer/parseInt line))
190
:column 0}))
191
(string/split frames-str #"\n"))))
192
+ repl/IGetError
193
+ (-get-error [this e env opts]
194
+ (let [{:keys [scope]} this
195
+ ex (-> scope
196
+ (ScriptableObject/getProperty "cljs")
197
+ (ScriptableObject/getProperty "core")
198
+ (ScriptableObject/getProperty "_STAR_e")
199
+ .unwrap)]
200
+ {:status :exception
201
+ :value (.toString ex)
202
+ :stacktrace (stacktrace ex)}))
203
repl/IJavaScriptEnv
204
(-setup [this opts]
205
(rhino-setup this opts))
0 commit comments