File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 19
19
20
20
(def *unchecked-if* false )
21
21
22
+ (defonce PROTOCOL_SENTINEL #js {})
23
+
22
24
(goog-define
23
25
^{:dynamic true
24
26
:doc " Var bound to the name value of the compiler build :target option.
Original file line number Diff line number Diff line change 1454
1454
(add-obj-methods type type-sym sigs)
1455
1455
(concat
1456
1456
(core/when-not (skip-flag psym)
1457
- [`(set! ~(extend-prefix type-sym pprefix) true )])
1457
+ [`(set! ~(extend-prefix type-sym pprefix) cljs.core/PROTOCOL_SENTINEL )])
1458
1458
(mapcat
1459
1459
(core/fn [sig]
1460
1460
(if (= psym 'cljs.core/IFn)
2014
2014
`(let [~xsym ~x]
2015
2015
(if ~xsym
2016
2016
(if (or ~(if bit `(unsafe-bit-and (. ~xsym ~msym) ~bit) false )
2017
- ~( bool-expr ` (. ~xsym ~(symbol (core/str " -" prefix)))))
2017
+ ( identical? cljs.core/PROTOCOL_SENTINEL (. ~xsym ~(symbol (core/str " -" prefix)))))
2018
2018
true
2019
2019
false )
2020
2020
false ))
2021
2021
`(if-not (nil? ~x)
2022
2022
(if (or ~(if bit `(unsafe-bit-and (. ~x ~msym) ~bit) false )
2023
- ~( bool-expr ` (. ~x ~(symbol (core/str " -" prefix)))))
2023
+ ( identical? cljs.core/PROTOCOL_SENTINEL (. ~x ~(symbol (core/str " -" prefix)))))
2024
2024
true
2025
2025
false )
2026
2026
false ))))
2040
2040
`(let [~xsym ~x]
2041
2041
(if-not (nil? ~xsym)
2042
2042
(if (or ~(if bit `(unsafe-bit-and (. ~xsym ~msym) ~bit) false )
2043
- ~( bool-expr ` (. ~xsym ~(symbol (core/str " -" prefix)))))
2043
+ ( identical? cljs.core/PROTOCOL_SENTINEL (. ~xsym ~(symbol (core/str " -" prefix)))))
2044
2044
true
2045
2045
(if (coercive-not (. ~xsym ~msym))
2046
2046
(cljs.core/native-satisfies? ~psym ~xsym)
2047
2047
false ))
2048
2048
(cljs.core/native-satisfies? ~psym ~xsym)))
2049
2049
`(if-not (nil? ~x)
2050
2050
(if (or ~(if bit `(unsafe-bit-and (. ~x ~msym) ~bit) false )
2051
- ~( bool-expr ` (. ~x ~(symbol (core/str " -" prefix)))))
2051
+ ( identical? cljs.core/PROTOCOL_SENTINEL (. ~x ~(symbol (core/str " -" prefix)))))
2052
2052
true
2053
2053
(if (coercive-not (. ~x ~msym))
2054
2054
(cljs.core/native-satisfies? ~psym ~x)
You can’t perform that action at this time.
0 commit comments