diff --git a/js/src/vm/UnboxedObject.cpp b/js/src/vm/UnboxedObject.cpp index fea268f9c7d..01a79401571 100644 --- a/js/src/vm/UnboxedObject.cpp +++ b/js/src/vm/UnboxedObject.cpp @@ -1829,10 +1829,6 @@ js::TryConvertToUnboxedLayout(ExclusiveContext* cx, Shape* templateShape, bool isArray = !templateShape; - const JS::RuntimeOptions& options = group->runtimeFromAnyThread()->options(); - if (isArray ? !options.unboxedArrays() : !options.unboxedObjects()) - return true; - if (group->runtimeFromAnyThread()->isSelfHostingGlobal(cx->global())) return true;