[IMP] devtools: allow expansion of empty class

This commit makes it possible to expand empty classes to see their
prototype instead of displaying them as simple empty objects.
This commit is contained in:
Julien Carion (juca)
2024-09-30 13:58:27 +02:00
committed by Géry Debongnie
parent 3e11fe6b12
commit 15c2604df1
@@ -834,7 +834,9 @@
case obj instanceof Object:
child.contentType = "object";
child.hasChildren =
Object.keys(obj).length || Object.getOwnPropertySymbols(obj).length;
Object.keys(obj).length ||
Object.getOwnPropertySymbols(obj).length ||
obj.constructor.name !== "Object";
break;
default:
child.contentType = typeof obj;