From 9f7054311f0748874f50f892832d2842f4fe7b96 Mon Sep 17 00:00:00 2001 From: jin Date: Sat, 2 Dec 2023 17:36:42 +0300 Subject: [PATCH] $mol_object2: static toJSON -> name --- object2/object2.ts | 4 ++++ 1 file changed, 4 insertions(+) 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() }