1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[spidermonkey] These assertions failed

This commit is contained in:
Witold Filipczyk 2023-11-21 14:33:19 +01:00
parent 67caccd017
commit 4495873d39
2 changed files with 0 additions and 14 deletions

View File

@ -1402,13 +1402,6 @@ form_finalize(JS::GCContext *op, JSObject *jsform)
struct form *form = JS::GetMaybePtrFromReservedSlot<struct form>(jsform, 0);
if (form) {
/* If this assertion fails, leave fv->ecmascript_obj
* unchanged, because it may point to a different
* JSObject whose private pointer will later have to
* be updated to avoid crashes. */
assert(form->ecmascript_obj == jsform);
if_assert_failed return;
form->ecmascript_obj = NULL;
/* No need to JS::SetPrivate, because the object is
* being destroyed. */

View File

@ -1858,13 +1858,6 @@ input_finalize(JS::GCContext *op, JSObject *jsinput)
struct form_state *fs = JS::GetMaybePtrFromReservedSlot<struct form_state>(jsinput, 0);
if (fs) {
/* If this assertion fails, leave fs->ecmascript_obj
* unchanged, because it may point to a different
* JSObject whose private pointer will later have to
* be updated to avoid crashes. */
assert(fs->ecmascript_obj == jsinput);
if_assert_failed return;
fs->ecmascript_obj = NULL;
/* No need to JS::SetPrivate, because jsinput is being
* destroyed. */