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 1919
2020(def *unchecked-if* false )
2121
22+ (defonce PROTOCOL_SENTINEL #js {})
23+
2224(goog-define
2325 ^{:dynamic true
2426 :doc " Var bound to the name value of the compiler build :target option.
Original file line number Diff line number Diff line change 14541454 (add-obj-methods type type-sym sigs)
14551455 (concat
14561456 (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 )])
14581458 (mapcat
14591459 (core/fn [sig]
14601460 (if (= psym 'cljs.core/IFn)
20142014 `(let [~xsym ~x]
20152015 (if ~xsym
20162016 (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)))))
20182018 true
20192019 false )
20202020 false ))
20212021 `(if-not (nil? ~x)
20222022 (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)))))
20242024 true
20252025 false )
20262026 false ))))
20402040 `(let [~xsym ~x]
20412041 (if-not (nil? ~xsym)
20422042 (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)))))
20442044 true
20452045 (if (coercive-not (. ~xsym ~msym))
20462046 (cljs.core/native-satisfies? ~psym ~xsym)
20472047 false ))
20482048 (cljs.core/native-satisfies? ~psym ~xsym)))
20492049 `(if-not (nil? ~x)
20502050 (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)))))
20522052 true
20532053 (if (coercive-not (. ~x ~msym))
20542054 (cljs.core/native-satisfies? ~psym ~x)
You can’t perform that action at this time.
0 commit comments