Issue #1142 - Cleanup unused debug code for unboxed objects

Also fixes an assertion during compile if debug is enabled since unboxed objects have been removed.
This commit is contained in:
Gaming4JC 2019-06-28 23:02:15 -04:00 • committed by Roy Tam
commit db85a69fdb
2 changed files with 1 additions and 8 deletions

View file

@ -112,13 +112,6 @@ JSCompartment::~JSCompartment()
js_delete(nonSyntacticLexicalEnvironments_),
js_free(enumerators);
#ifdef DEBUG
// Avoid assertion destroying the unboxed layouts list if the embedding
// leaked GC things.
if (!rt->gc.shutdownCollectedEverything())
unboxedLayouts.clear();
#endif
runtime_->numCompartments--;
}