Skip to content

Commit

Permalink
Render symbols in logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Feb 12, 2025
1 parent 27d9fe2 commit bd75d31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/loggy-intf/private/HumanVisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ export class HumanVisitor extends BaseValueVisitor {
}

/** @override */
_impl_visitSymbol(node_unused, isInterned_unused) {
throw this.#shouldntHappen();
_impl_visitSymbol(node, isInterned) {
return this.#renderSexp(
new Sexp(isInterned ? 'Symbol.for' : 'Symbol', node.description));
}

/** @override */
Expand Down

0 comments on commit bd75d31

Please sign in to comment.