The attached CLJS-2148-Add-unsafe-get-and-use-goog.object.patch is intended to replace CLJS-2148-Address-new-aget-aset-warnings.patch. It accomplishes the same overall goal, but specifically adds a new unsafe-get macro that can be used in performance critical code where goog.object/get would introduce a perf regression. It uses that new macro in the places mentioned above.
Mike Fikes July 3, 2017 at 7:14 PM
The few critical places comprise native-satisfies?, hash-string, quote-string, defprotocol
Warn on improper use of
aget
andaset
for objects.