diff --git a/src/ecmascript/libdom/spidermonkey/form.cpp b/src/ecmascript/libdom/spidermonkey/form.cpp index b8e325923..7a7bc1248 100644 --- a/src/ecmascript/libdom/spidermonkey/form.cpp +++ b/src/ecmascript/libdom/spidermonkey/form.cpp @@ -1402,13 +1402,6 @@ form_finalize(JS::GCContext *op, JSObject *jsform) struct form *form = JS::GetMaybePtrFromReservedSlot(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. */ diff --git a/src/ecmascript/libdom/spidermonkey/input.cpp b/src/ecmascript/libdom/spidermonkey/input.cpp index 01aa102cb..61be21242 100644 --- a/src/ecmascript/libdom/spidermonkey/input.cpp +++ b/src/ecmascript/libdom/spidermonkey/input.cpp @@ -1858,13 +1858,6 @@ input_finalize(JS::GCContext *op, JSObject *jsinput) struct form_state *fs = JS::GetMaybePtrFromReservedSlot(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. */