diff --git a/object2/object2.ts b/object2/object2.ts index 3cd8c4d5457..c099b3ff8c6 100644 --- a/object2/object2.ts +++ b/object2/object2.ts @@ -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() }