File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2514
2514
2515
2515
:else
2516
2516
(when (seq? target)
2517
- (let [texpr (analyze-seq enve target nil )]
2517
+ (let [texpr (if (-> target meta :extend-type )
2518
+ ; ; we're setting a prototype via extend-type macro
2519
+ ; ; nothing to warn
2520
+ (binding [*cljs-warnings*
2521
+ (assoc *cljs-warnings* :infer-warning false )]
2522
+ (analyze-seq enve target nil ))
2523
+ (analyze-seq enve target nil ))]
2518
2524
(when (:field texpr)
2519
2525
texpr))))
2520
2526
vexpr (analyze enve val)]
Original file line number Diff line number Diff line change 1461
1461
[tsym sym] `(.. ~tsym ~(to-property sym)))
1462
1462
1463
1463
(core/defmethod extend-prefix :default
1464
- [tsym sym] `(.. ~tsym ~'-prototype ~(to-property sym)))
1464
+ [tsym sym]
1465
+ (with-meta `(.. ~tsym ~'-prototype ~(to-property sym)) {:extend-type true }))
1465
1466
1466
1467
(core/defn- adapt-obj-params [type [[this & args :as sig] & body]]
1467
1468
(core/list (vec args)
Original file line number Diff line number Diff line change 9
9
[cljs.test-util :refer [unsplit-lines]]
10
10
[cljs.util :as util]
11
11
[clojure.string :as string]
12
- [clojure.test :refer [is are deftest testing]]))
12
+ [clojure.test :as test : refer [is are deftest testing]]))
13
13
14
14
(def externs-cenv
15
15
(atom
You can’t perform that action at this time.
0 commit comments