Skip to content

Commit

Permalink
$mol_object2: static toJSON -> name
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Dec 2, 2023
1 parent 1a42760 commit 9f70543
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions object2/object2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ namespace $ {
return this[ Symbol.toStringTag ] || this.constructor.name + '()'
}

static toJSON() {
return this.$.$mol_func_name( this )
}

toJSON(): any {
return this.toString()
}
Expand Down

0 comments on commit 9f70543

Please sign in to comment.