Skip to content

Commit

Permalink
[IMP] devtools: allow expansion of empty class
Browse files Browse the repository at this point in the history
This commit makes it possible to expand empty classes to see their
prototype instead of displaying them as simple empty objects.
  • Loading branch information
juliusc2066 committed Sep 30, 2024
1 parent 20c6cac commit 2ab90a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/devtools/src/page_scripts/owl_devtools_global_hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ab90a3

Please sign in to comment.