File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 73
73
(let [base (fn [t]
74
74
(merge {:type (cond
75
75
(instance? ExceptionInfo t) 'ExceptionInfo
76
- (instance? js/EvalError t) 'js/EvalError
77
- (instance? js/RangeError t) 'js/RangeError
78
- (instance? js/ReferenceError t) 'js/ReferenceError
79
- (instance? js/SyntaxError t) 'js/SyntaxError
80
- (instance? js/URIError t) 'js/URIError
81
- (instance? js/Error t) 'js/Error
76
+ (instance? js/Error t) (symbol " js" (.-name t))
82
77
:else nil )}
83
78
(when-let [msg (ex-message t)]
84
79
{:message msg})
Original file line number Diff line number Diff line change
1
+ ; Copyright (c) Rich Hickey. All rights reserved.
2
+ ; The use and distribution terms for this software are covered by the
3
+ ; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
4
+ ; which can be found in the file epl-v10.html at the root of this distribution.
5
+ ; By using this software in any fashion, you are agreeing to be bound by
6
+ ; the terms of this license.
7
+ ; You must not remove this notice, or any other, from this software.
8
+
9
+ (ns cljs.repl-test
10
+ (:require
11
+ [cljs.repl]
12
+ [cljs.test :refer [deftest is]]))
13
+
14
+ (deftest test-cljs-3017
15
+ (let [m (cljs.repl/Error->map (js/TypeError. ))]
16
+ (is (= 'js/TypeError (get-in m [:via 0 :type ])))))
Original file line number Diff line number Diff line change 51
51
[cljs.array-access-test]
52
52
[cljs.inference-test]
53
53
[cljs.walk-test]
54
+ [cljs.repl-test]
54
55
[cljs.extend-to-native-test]))
55
56
56
57
(set! *print-newline* false )
100
101
'cljs.array-access-test
101
102
'cljs.inference-test
102
103
'cljs.walk-test
104
+ 'cljs.repl-test
103
105
'cljs.extend-to-native-test)
Original file line number Diff line number Diff line change 176
176
technical issues)."
177
177
[name macros]
178
178
((if macros
179
- #{'cljs.core}
179
+ #{'cljs.core
180
+ 'cljs.repl}
180
181
#{'goog.object
181
182
'goog.string
182
183
'goog.string.StringBuffer
315
316
[cljs.array-access-test]
316
317
[cljs.inference-test]
317
318
[cljs.walk-test]
319
+ [cljs.repl-test]
318
320
[cljs.extend-to-native-test]))
319
321
(fn [{:keys [value error]}]
320
322
(if error
362
364
'cljs.array-access-test
363
365
'cljs.inference-test
364
366
'cljs.walk-test
367
+ 'cljs.repl-test
365
368
'cljs.extend-to-native-test)
366
369
(fn [{:keys [value error]}]
367
370
(when error
You can’t perform that action at this time.
0 commit comments