File tree Expand file tree Collapse file tree
common/changes/@hcengineering/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "changes" : [
3+ {
4+ "packageName" : " @hcengineering/core" ,
5+ "comment" : " Fix object clone" ,
6+ "type" : " patch"
7+ }
8+ ],
9+ "packageName" : " @hcengineering/core"
10+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " @hcengineering/core" ,
3- "version" : " 0.7.24 " ,
3+ "version" : " 0.7.25 " ,
44 "main" : " lib/index.js" ,
55 "svelte" : " src/index.ts" ,
66 "types" : " types/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,14 @@ export function getTypeOf (obj: any): string {
1414 return 'Array'
1515 }
1616
17- const stringTag = ste && obj [ Symbol . toStringTag ]
17+ let stringTag : string | undefined
18+ if ( ste ) {
19+ try {
20+ stringTag = obj [ Symbol . toStringTag ]
21+ } catch {
22+ stringTag = undefined
23+ }
24+ }
1825 if ( typeof stringTag === 'string' ) {
1926 return stringTag
2027 }
You can’t perform that action at this time.
0 commit comments