Skip to content

Commit

Permalink
fix(injector): correctly label symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Feb 6, 2024
1 parent a9927c2 commit ac07f21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/injector/src/injector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export function tokenLabel(token: Token): string {
if (token === null) return 'null';
if (token === undefined) return 'undefined';
if (token instanceof TagProvider) return 'Tag(' + getClassName(token.provider.provide) + ')';
if (typeof token === 'symbol') return token.toString();
if (isClass(token)) return getClassName(token);
if (isType(token)) return stringifyType(token).replace(/\n/gm, '');
if (isFunction(token.toString)) return token.name;
Expand Down

0 comments on commit ac07f21

Please sign in to comment.