Bug 1095121 - Fix TypeError caused by JS engine |const| changes. (r=mconley, a=jcranmer)