These functions may do JS allocation. Hence, they need to acquire the JSLock first. <rdar://problem/30878027>
Created attachment 309148 [details] proposed patch.
Thanks for the review. Landed in r216246: <http://trac.webkit.org/r216246>.