Bug 866471 - Change assert for self-hosted functions into debug-only macro. r=tschneidereit

--HG--
extra : rebase_source : ea2b8aa1f44f0d392e9fc2cc9d0631bd99c59b07