Throw error instead of assert false

This commit is contained in:
Juho Teperi 2017-03-11 01:35:14 +02:00
parent ccb94f5274
commit 93043e86c4
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@
(defn custom-wrapper [key f]
(case key
:getDefaultProps
(assert false "getDefaultProps not supported")
(throw (js/Error. "getDefaultProps not supported"))
:getInitialState
(fn getInitialState []