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:
parent
67caccd017
commit
4495873d39
@ -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. */
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user