Commit a8c0217b authored by Philip Chimento's avatar Philip Chimento

wrapperutils: Define $gtype property as non-enumerable

When factoring out this function, the property flags should not have
included JSPROP_ENUMERABLE (in GJS_MODULE_PROP_FLAGS, intended for API
but not data.)
parent b0b4ec02
......@@ -93,7 +93,7 @@ bool gjs_wrapper_define_gtype_prop(JSContext* cx, JS::HandleObject constructor,
const GjsAtoms& atoms = GjsContextPrivate::atoms(cx);
return JS_DefinePropertyById(cx, constructor, atoms.gtype(), gtype_obj,
GJS_MODULE_PROP_FLAGS);
JSPROP_PERMANENT);
}
// These policies work around having separate g_foo_info_get_n_methods() and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment