1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[spidermonkey] Empty finalizers

This commit is contained in:
Witold Filipczyk 2023-11-22 20:55:57 +01:00
parent fe90abbaec
commit c3edadc2d9
2 changed files with 9 additions and 7 deletions

View File

@ -207,6 +207,8 @@ elements_finalize(JS::GCContext *op, JSObject *obj)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
#if 0
struct form_view *fv = JS::GetMaybePtrFromReservedSlot<struct form_view>(obj, 0);
if (fv) {
@ -221,6 +223,7 @@ elements_finalize(JS::GCContext *op, JSObject *obj)
/* No need to JS::SetPrivate, because the object is
* being destroyed. */
}
#endif
}
static bool
@ -1391,6 +1394,8 @@ form_finalize(JS::GCContext *op, JSObject *jsform)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
#if 0
struct form *form = JS::GetMaybePtrFromReservedSlot<struct form>(jsform, 0);
if (form) {
@ -1398,6 +1403,7 @@ form_finalize(JS::GCContext *op, JSObject *jsform)
/* No need to JS::SetPrivate, because the object is
* being destroyed. */
}
#endif
}
void

View File

@ -1824,13 +1824,7 @@ get_input_object(JSContext *ctx, struct form_state *fs)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
JSObject *jsinput = (JSObject *)fs->ecmascript_obj;
if (jsinput) {
return jsinput;
}
JSObject *jsinput;
/* jsform ('form') is input's parent */
/* FIXME: That is NOT correct since the real containing element
* should be its parent, but gimme DOM first. --pasky */
@ -1855,6 +1849,7 @@ input_finalize(JS::GCContext *op, JSObject *jsinput)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
#if 0
struct form_state *fs = JS::GetMaybePtrFromReservedSlot<struct form_state>(jsinput, 0);
if (fs) {
@ -1862,4 +1857,5 @@ input_finalize(JS::GCContext *op, JSObject *jsinput)
/* No need to JS::SetPrivate, because jsinput is being
* destroyed. */
}
#endif
}