Support Worker globals in global_object_for_js_object.