cljs.math/add-exact

functionsince v1.11.50Edit
(add-exact x y)

Source docstring:
Returns the sum of x and y, throws an exception on overflow. 
Source code @ clojurescript:src/main/cljs/cljs/math.cljs
(defn ^number add-exact
  {:added "1.11.10"}
  [x y]
  (let [r (clojure.core/+ x y)]
    (if (or (> r js/Number.MAX_SAFE_INTEGER) (< r js/Number.MIN_SAFE_INTEGER))
      (throw (ex-info "Integer overflow" {:fn "add-exact"}))
      r)))