Bug 978892 - [e10s] Avoid racing when creating PJavaScript object (r=mrbkap)