Bug 865960 - JS OOM should throw instead of silently stopping execution (r=billm)

--HG--
extra : rebase_source : 39eb34b736e142bb40b68ec25f335ed6283a1570