File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 904
904
(defn ^boolean instance?
905
905
" Evaluates x and tests if it is an instance of the type
906
906
c. Returns true or false"
907
- [t o ]
908
- (cljs.core/instance? t o ))
907
+ [c x ]
908
+ (cljs.core/instance? c x ))
909
909
910
910
(defn ^boolean symbol?
911
911
" Return true if x is a Symbol"
Original file line number Diff line number Diff line change 921
921
(core/defmacro identical? [a b]
922
922
(bool-expr (core/list 'js* " (~{} === ~{})" a b)))
923
923
924
- (core/defmacro instance? [t o ]
924
+ (core/defmacro instance? [c x ]
925
925
; ; Google Closure warns about some references to RegExp, so
926
926
; ; (instance? RegExp ...) needs to be inlined, but the expansion
927
927
; ; should preserve the order of argument evaluation.
928
- (bool-expr (if (clojure.core/symbol? t )
929
- (core/list 'js* " (~{} instanceof ~{})" o t )
930
- `(let [t # ~t o # ~o ]
931
- (~'js* " (~{} instanceof ~{})" o# t #)))))
928
+ (bool-expr (if (clojure.core/symbol? c )
929
+ (core/list 'js* " (~{} instanceof ~{})" x c )
930
+ `(let [c # ~c x # ~x ]
931
+ (~'js* " (~{} instanceof ~{})" x# c #)))))
932
932
933
933
(core/defmacro number? [x]
934
934
(bool-expr (core/list 'js* " typeof ~{} === 'number'" x)))
You can’t perform that action at this time.
0 commit comments