134
138
/* let Object.prototype resolve these */
135
139
if (strcmp(name, "valueOf") == 0 ||
136
140
strcmp(name, "toString") == 0)
139
143
priv = priv_from_js(context, obj);
140
144
gjs_debug_jsprop(GJS_DEBUG_GREPO, "Resolve prop '%s' hook obj %p priv %p", name, obj, priv);
145
149
JS_BeginRequest(context);
146
150
if (resolve_namespace_object(context, obj, name) == NULL) {
150
153
*objp = obj; /* store the object we defined the prop in */
156
162
/* If we set JSCLASS_CONSTRUCT_PROTOTYPE flag, then this is called on