We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a24768 commit a0c642cCopy full SHA for a0c642c
src/extensions/jwPointer/index.js
@@ -88,8 +88,14 @@ class PointerType {
88
pointer.style.opacity = "0.5";
89
root.appendChild(pointer);
90
if (!destroyed) {
91
- let value = (this.value !== null && this.value.toReporterContent) ? this.value.toReporterContent() : span(this.value);
92
- if (this.value === null) value = span("null");
+ let value
+ try {
93
+ if (this.value === null) value = span("null")
94
+ else if (this.value instanceof Pointer) value = span("(Pointer)")
95
+ else this.value.toReporterContent ? this.value.toReporterContent() : span(this.value)
96
+ } catch (e) {
97
+ value = span("(Recursive)")
98
+ }
99
value.style.maxWidth = "100%";
100
value.style.overflow = "auto";
101
root.appendChild(value);
0 commit comments